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)