Forums › Forums › Search & Filter Pro › Rebuild Cache from Code
- This topic has 7 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) November 17, 2020 at 8:40 am #266664
Hello,
do_action('search_filter_update_post_cache', $post_id);
– this clears thee cache of a particular post.
But how can I rebuilt the cache of a search form (I am talking about the “rebuild cache” option on the search form edit screen) from code?Thanks.
Trevor(Private) November 17, 2020 at 10:14 am #266685There is no option or code to do this, sorry. Are you needing to do this after an import update of posts, such as when using WP All Import?
For example, with WP All Import, see this post:
https://support.searchandfilter.com/forums/topic/cache-at-time-interval/
Anonymous(Private) November 17, 2020 at 10:18 am #266690It’s not actually a post import. I am manually updating some post meta, based on some user activities, and I need to update the cache after it saves the post meta values. Without rebuilding the cache, filter result doesn’t update according with the new meta values.
-
AuthorPosts