Tagged: Page Cache
-
AuthorPosts
-
March 24, 2023 at 11:11 am #83761Peter GuthrieGuest
Hi – we have a pro license.
When we do a simple update to a product category (eg changing a description) we have found that this triggers a flush_all event, which invalidates our entire page cache. As we have some fairly heavyweight products on the site with many variations, this is not ideal.
Could you advise how best to limit the cache flush to just the edited category page – in the same way that editing a product just flushes that one product page?
Screenshot from the page cache purge log is at https://ibb.co/m9L5DVx
Thanks in advance for your help!March 24, 2023 at 11:23 am #83778Marko VasiljevicKeymasterHello Peter,
Thank you for reaching out and I am happy to assist you with this.
This may be called by some other plugins as well, depending on a theme or the plugins you are using. Since you are updating a product category, there is a chance that woocommerce is calling flush_all.
The W3 Total Cache only purges the page that is updated.
To confirm this, please disable all purge settings in the Performance>Page Cache>Purge policy and let me know if the problem persists.
If the issue persists, it means that 3rd party plugin//them is calling the purge and we have a programmatic solution for this.Thanks!
March 24, 2023 at 2:10 pm #83782Peter GuthrieGuestHi Marko – thanks for such a swift response.
I did what you suggest on a copy of the site to test, and yes, the same thing happened – all enhanced disk page cache files for product categories, products etc were appended with _old after I edited one category page (changed a full stop to an exclamation mark and saved!). All Purge Policy: Page Cache tick boxes were unticked.
We are using storefront theme, latest versions of WP and Woo, latest version of W3TC (all updated in last 2-3 days)
Thanks againMarch 24, 2023 at 2:13 pm #83790Marko VasiljevicKeymasterHello Peter,
Thank you for your feedback.
This means that W3TC is not calling a purge.
Please drop us a note via the plugin in Performance>Support with the reference of this topic, and I’ll share a code that you can use to block 3rd-party plugins/themes to call the purge_allThanks!
-
AuthorPosts
- The topic ‘Updating product category triggers flush_all’ is closed to new replies.