Forums › Forums › Search & Filter Pro › Rebuild cache after All Import
Tagged: All Import, cache
- This topic has 61 replies, 3 voices, and was last updated 5 years, 7 months ago by Ross.
-
Anonymous(Private) March 13, 2019 at 10:56 am #204985
Hi
I have a site that uses WP All Import to add/update posts. The client is flagging that updated posts aren’t always showing in the results. When I rebuild the cache on the search they do appear.
I’ve added the following to the functions on All Import, which as far as I can see should solve this problem but unfortunately it hasn’t. Any thoughts?
add_action('pmxi_saved_post', 'wp_all_import_post_saved', 10, 1); function wp_all_import_post_saved($id) { do_action('search_filter_update_post_cache', $id); }
Thanks
Trevor(Private) March 14, 2019 at 1:45 pm #205129You somehow need to see if that function is being used. These plguins might help:
https://wordpress.org/plugins/debug-bar/
https://wordpress.org/plugins/debug-bar-actions-and-filters-addon/Anonymous(Private) March 14, 2019 at 2:12 pm #205141I do use Query Monitor, which I believe does a similar thing.
I did spot this in the actions on the Query Monitor plugin, if it’s of any interest.
Search_Filter_Post_Cache->wp_shutdown()
I did also echo the ID and ‘- cached’ in the same All Import function, which did show on the log so I know wp_all_import_post_saved is being used.
-
AuthorPosts