Forums › Forums › Search & Filter Pro › Rebuild manually all the cache
Tagged: cache
- This topic has 3 replies, 3 voices, and was last updated 5 years, 1 month ago by Trevor.
-
Anonymous(Private) November 23, 2019 at 12:55 am #227447
Hi!
I moved a website to a new hosting (same configuration, host and specs – and i assume i did this by the “clean way”).
The filter didn’t work anymore (the index was built by an older version of Search Filter).This is for custom post type including a custom post status.
I tried to rebuild the cache with the plugin, but it seems only the draft ones was re-indexed.After searching on forum and spent some hours… I tried :
do_action('search_filter_update_post_cache', 10004);
and the post has been re-indexed !
So i should be able to build an array an parse all the IDs (~6000 posts).
But my questions :
1) Any idea why the do_action worked an not the “rebuild cache” button ?
2) is there a way to delete/destroy the cache in order to rebuild them from scratch ?
3) A good way to execute and use the do_action(‘search_filter_update_post_cache…. for all posts ?Thank You ! 🙂
Trevor(Private) November 25, 2019 at 6:00 pm #227600The rebuild cache button should have done it, so unless there are some server error logs to see, I am not sure why this did not work.
You could try dropping the two cache tables, deactivate and reactivate the plugin, and then try the button again?
The other method would work, eventually, but should not be necessary. There may be an issue with the posts themselves.
It may be the way you moved the site. I would normally use a good migration tool, as it fixes things in the database that can get missed. My guess is that something has gone wrong, possibly with the forms themselves.
Anonymous(Private) December 18, 2019 at 7:11 pm #229413Piggy backing off of this, you were able to use do_action(‘search_filter_update_post_cache… to index just one post correct? How can i manually launch the rebuild index? I have some posts that users put in that do not get indexed. Would really love to have this manually run every night.
-
AuthorPosts