Forums Forums Search & Filter Pro Cache rebuild

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #240373

    Hi

    I we got website with total 3K woocommerce products out of which ~ 2000 products are in draft mode

    We have configured search such a way that it should only show published posts ( products )

    But whenever we rebuild cache it takes and go through all products. Which is causing lot of trouble lately.

    Sometime page return blank or whole category goes missing. Client is getting angry.

    I would appreciate any help on that.

    Can we just cache published posts instead posts in draft?

    check this https://cl.ly/5f9675a039cb / https://cl.ly/49c5d865c543

    Trevor
    #240394

    I am wondering why you are needing to re-build the cache? If you edit a post to make it published as you Update each post our cache should update. Unless you are using an importer plugin?

    Anonymous
    #242932

    Yes we are syncing products ( from POS/Inventory System) through cron every 30mins

    Anonymous
    #242934

    We should not cache draft posts if the post status is set as published ?

    check this https://cl.ly/5f9675a039cb / https://cl.ly/49c5d865c543

    Trevor
    #242978
    This reply has been marked as private.
    Anonymous
    #243845

    No Luck it is still caching all the draft products https://cl.ly/b8857175c802 & https://cl.ly/9f7079ec40d1

    FYI https://cl.ly/af52a95b48f8

    Ross Moderator
    #243889

    Hi Scott

    So, behind the scenes, S&F caches all post built in post status, but the query, will honor your settings in your search form to only show published.

    So, then next question is (as Trevor mentioned), why do we need to rebuild the whole cache?

    If you are syncing posts, I assume, you are not dumping all of your posts, and importing them all again, rather, updating and inserting only new posts?

    How many posts roughly would change in a sync?

    We should be able to do this in a much better way, by integrating our action search_filter_udpate_post_cache with your syncing process somehow (this updates a single post, and does’t require full rebuilds) –
    https://searchandfilter.com/documentation/action-filter-reference/#update-cache-for-a-particular-post

    Thanks

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