Forums Forums Search & Filter Pro Auto cache rebuild / caching issue

Tagged: 

  • This topic has 9 replies, 3 voices, and was last updated 8 years ago by Ross.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #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
    #29002

    Hey 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
    #29040

    Hi 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
    #29041

    Hmmm there has been no changes to pagination at all…

    What seems to be wrong with it>?

    Anonymous
    #29042
    This reply has been marked as private.
    Ross Moderator
    #29048

    Ohhh 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 at search-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
    #29055

    Amazing thanks Ross!

    Really should of checked this template first!

    Thanks for all your help issues resolved now!

    Must be difficult to stay on top of all the support requests in the forum but you are doing a great Job!

    Kind Regards

    Ross Moderator
    #29066

    Thanks!

    Anonymous
    #67333

    Hi 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
    #67470

    Hi 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

Viewing 10 posts - 1 through 10 (of 10 total)