Forums › Forums › Search & Filter Pro › Auto update Search and Filter cache after import with WP All Import
Tagged: Auto update, wp all import
- This topic has 7 replies, 3 voices, and was last updated 5 years, 11 months ago by
Ross.
-
Anonymous(Private) July 22, 2019 at 8:28 am #216843
Hi,
We have just imported a new file and the newly created products do show up automatically in the results page, as expected!
But filter values aren’t updated automatically and if you filter the new products aren’t in those results.
Do you know how we can fix this?
Ross Moderator(Private) July 24, 2019 at 4:54 pm #217135Hi Emma
Where did you place this code?
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); }
You need to add it to
functions.php
, I believe there is also a place where you can add this inside the WP All Import plugin, but if my memory serves, this did not work.We’ve had a couple of users with the same issue as you, however, with the beta, their issues are resolved. So I would like to be doubly ensure (you may already have) that you have disabled any caching plugins (and you have been clearing your browser cache) while we test this issue?
Thanks
Ross Moderator(Private) July 24, 2019 at 4:57 pm #217137Also, you could try with lowering the priority on the action (notice instead of
10
we can try1000
):add_action('pmxi_saved_post', 'wp_all_import_post_saved', 1000, 1);
-
AuthorPosts