Forums › Forums › Search & Filter Pro › Auto cache rebuild / caching issue
Tagged: cache
- This topic has 9 replies, 3 voices, and was last updated 8 years ago by Ross.
-
Anonymous(Private) November 5, 2015 at 10:59 am #28976
Hi,
We are using search and filter with a custom post type of jobs, the jobs are parsed using xml feeds and posts within the custom post type are created.
We have encountered an issue since the update where the cache doesn’t auto update/build for the new jobs that are posted. Which in turn leaves anything new missing from the results unlesss we go in and manually rebuild the cache from the admin.
Is there something we have missed in the setup or is there a new feature coming that will run a cron to update this cache rather than having to be done manually?
Kind Regards
Ross Moderator(Private) November 5, 2015 at 5:33 pm #29002Hey Frank
I’ve literally just added an action for this:
do_action('search_filter_update_post_cache', 1984);
Change
1984
for your post ID.This is not released yet but I’ve emailed you this update directly.
Thanks
Anonymous(Private) November 6, 2015 at 10:47 am #29040Hi Ross,
Thanks for your speedy response and update the new action works perfectly with the job parser we have implemented although the latest patch appears to have broken the pagination on the search results.
Is there a quick fix for this?
Thanks again and all your work is greatly appreciated.
Kind Regards
Ross Moderator(Private) November 6, 2015 at 10:51 am #29041Hmmm there has been no changes to pagination at all…
What seems to be wrong with it>?
Ross Moderator(Private) November 6, 2015 at 11:32 am #29048Ohhh I see, you are using pagination from a very old version of S&F.
I’ve since removed the custom S&F pagination in favour of using WP standards.
So now for pagination check the updated
results.php
template located atsearch-filter-pro/templates/results.php
for example usage of pagination.This also means there is out of the box support for the wp-pagenavi plugin which allows you to do even more cool things 🙂
https://wordpress.org/plugins/wp-pagenavi/
Thanks
Anonymous(Private) October 31, 2016 at 11:37 am #67333Hi Ross,
My client is having the same issue.
It is updating some custom posts and when they change the categories the posts still appear under the category which were set previously.
I believe that is a cache problem.
Is there an action I can set to auto update the cache for a set of custom posts?
Many thanks
Marco
Ross Moderator(Private) November 1, 2016 at 1:32 am #67470Hi Marco
What version of S&F are you using?
How is your client updating the categories, can you explain exactly which screen etc they are performing the action?
Thanks
-
AuthorPosts