Forums Forums Search & Filter Pro Clear Cache

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #219351

    Hi everyone,

    so just to be clear, if I have a filtration system for a custom post type, I have to clear the cache every time a new post is published?

    For example, this:
    https://northernlightsccv.org/training/training-calendar/
    has several submission every day from an exposed form. Does the site owner need to clear the cache each time a submission is published?

    Thanks

    Trevor
    #219355

    I split this post from the thread that you had replied to, as I don’t think it is related.

    Are you saying that posts made via that form do not appear in the results, unless you rebuild the cache?

    Anonymous
    #219361

    Hi Trevor,
    some of the posts do not appear without filtration. In theory, every post should be present when the training-calendar page loads.

    I’m trying to eliminate possible causes, so I was hoping that it was NOT related to the cache. How does the cache work? How often does it build and would posts not being included if added after the last rebuild of the cache?

    thanks

    Trevor
    #219367

    Every time that the Update post button (save) is used in the editor, our plugin updates the cache for that one post. If you are using a front end post submission form, it is possible that form is triggering the WordPress save_post() function, but instead is writing direct to the database. That means, our plugin might not see that new post. There is an action that can be used by the import/form submission plugin to trigger our plugin to update the cache for that post:

    https://searchandfilter.com/documentation/action-filter-reference/#update-cache-for-a-particular-post

    Anonymous
    #219375

    Thanks Trevor, I’ll give that a try.
    Michael

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