Rebuild cache issue

Forums › Forums › Search & Filter Pro › Rebuild cache issue

Tagged: 

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #265570

    We have an API connection with an ATS system. What it does is exporting vacancies to the WordPress database (as post items).

    We use search&filter to filter the vacancies but also make different vacancy categorie pages. That works fine, but the trouble begins when a categorie has lot of vacancies (more than 100). When de ATS runs an export the list with the most vacancies keeps empty.

    The vacancies are placed in the WP back-end but not showing on the front-end.

    Hitting the Rebuild Cache button solves the problem. But it’s an automatic process so we can’t hit the Rebuild Cache button every time a new list of vacancies is placed.

    Is there a solution for it?
    – can we rebuild the cache after import automatically (do you have example code)
    – Otherwise can disable the cache?

    Hope you can help.

    Trevor
    #265571

    The import process will have a loop to import one post at a time, and will have access to the Post ID of each post as it does this. You need to use this action in that loop:

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

    Anonymous
    #265573

    Thanks Trevor, for your quick reply.
    We gonna work with that.

    Trevor
    #265575

    Ok. I will wait to hear from you.

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.