Forums › Forums › Search & Filter Pro › Cache rebuild
- This topic has 6 replies, 3 voices, and was last updated 6 years, 2 months ago by
Ross.
-
Anonymous(Private) April 17, 2020 at 8:13 am #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
Anonymous(Private) May 7, 2020 at 3:35 am #242934We should not cache draft posts if the post status is set as published ?
check this https://cl.ly/5f9675a039cb / https://cl.ly/49c5d865c543
Anonymous(Private) May 14, 2020 at 8:09 am #243845No Luck it is still caching all the draft products https://cl.ly/b8857175c802 & https://cl.ly/9f7079ec40d1
Ross Moderator(Private) May 14, 2020 at 12:00 pm #243889Hi 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_cachewith 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-postThanks
-
AuthorPosts