Title: Dynamic purge
Last modified: May 8, 2020

---

# Dynamic purge

 *  Resolved [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/)
 * Hi,
 * Thank you for your wonderfull plugin.
 * seems this option :
 *  “Automatically purge the Cloudflare cache on website changes (posts, pages, 
   themes, attachments, etc..)
    If enabled, WP Cloudflare Super Page Cache tries
   to purge the cache for related pages only.”
 * Does not work with WooCommerce product. Indeed after someone buy a product and
   then changing the stock number (the stock message status on product loop and 
   single page should change) i still have the same stock status. and i have to 
   purge the cache manually for update this status.
 * I would like that is managed automatically.
 * And after this purge is it possible to make launching the preload cache automatically
   too ?
 * Normally if all this work that should kill the game. 😀
 * Thank you

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/dynamic-purge/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/dynamic-purge/page/2/?output_format=md)

 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12806324)
 * Hi [@maaw](https://wordpress.org/support/users/maaw/) ,
    I will add and option
   to automatically purge the cache when an end user completes an order on woocommerce,
   thanks for your suggestion.
 * For everything else, does everything work?
 * > And after this purge is it possible to make launching the preload cache automatically
   > too ?
 * I will add an option also for this 😉
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12806781)
 * Hi,
 * Thanks a lot for your reply, and adding these options! Yes all work fine and 
   graphic is really great.
 * The automatic preload cache will be able to preload only the specific page who
   was purged like the page where there was the product whose sotck had just been
   changed?
 * Thank you
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12809638)
 * Hi [@maaw](https://wordpress.org/support/users/maaw/) ,
    I’ve been the beta version
   for the woocommerce option you requested above. Do you want test it before the
   release?
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12809645)
 * Hi,
    Yes
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12809779)
 * [https://we.tl/t-bqWowz3sg0](https://we.tl/t-bqWowz3sg0)
 * Let me know
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12810667)
 * HI,
 * Thank you for let my trying the new features.
 * Automatic purge for single product page works good after product was purchased
   but not the loop page (who where appears status stock too).
 * And i think it’s better to triggering just the fact that the stock number has
   changed (or any others change) and not the fact that the product was purchased
   because when the admin change the stock number (or title) from dashboard the 
   cache should be purge too and it’s more convenient. Then with that, purchased
   product and changing stock from admin should triggering the purge. What do you
   think ?
 * And preload cache does not work at all at my side (cache work correctly) :/
 * Thanks you very much
    -  This reply was modified 6 years, 3 months ago by [maaw](https://wordpress.org/support/users/maaw/).
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12813905)
 * Hi [@maaw](https://wordpress.org/support/users/maaw/) ,
    try this one that should
   purge also the categories: [https://we.tl/t-WJ2N64IuT1](https://we.tl/t-WJ2N64IuT1)
 * For the preload you have to wait ’cause it needs more work
 * Let me know 🙂
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12819282)
 * Hi [@maaw](https://wordpress.org/support/users/maaw/) ,
    do you solved?
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12829049)
 * Hi Salvatore !
 * Really sorry for my delay !
 * I just tried but know the automatic purge does not work anymore at all anymore:/
 * If you need access to my staging website don’t hesitate.
 * Thank you for your concern !
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12829633)
 * Hi [@maaw](https://wordpress.org/support/users/maaw/) ,
    yes sure. I didn’t tested
   it before, so it’s normal 🙂
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12883757)
 * HI, i will install again your plugin and make some others test. I will give you
   feedback soon !
    Thank you for your work !
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12883846)
 * Hey install The last available version and let me know 😉
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12883997)
 * Hi,
 * Yes i just installed it and tested it.
 * -For automatic purge product cache when changing stock number :
    randomly it 
   seems that the purge does not reach all related content. For exemple i have product
   who is related on two category and one category was purged but not the other 
   one and sometimes it’s the single product page who’s not purged.
 * -Preload : Seems still not work at my side (tested on two different website with
   all not must use plugin deactivate). Never preloaded and i waited more than 15
   minutes.
 * -Cache for user logged in : no cache for logged user. Even “Bypass the cache 
   for logged-in users” is off, Cache statut stay on “Expire”
 * Thank you very much !
    -  This reply was modified 6 years, 2 months ago by [maaw](https://wordpress.org/support/users/maaw/).
    -  This reply was modified 6 years, 2 months ago by [maaw](https://wordpress.org/support/users/maaw/).
 *  Plugin Contributor [Salvatore Fresta](https://wordpress.org/support/users/salvatorefresta/)
 * (@salvatorefresta)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12888954)
 * Hello [@maaw](https://wordpress.org/support/users/maaw/) ,
    for the first point,
   please replace libs/cache_controller.class.php with this one [https://we.tl/t-xQMS3Bwl9e](https://we.tl/t-xQMS3Bwl9e)
 * This code purges:
    - Shop url
    - All urls of the categories related to the product
    - Other related pages
 * when the hook **woocommerce_updated_product_stock** fires. Wait 30 seconds before
   to check if the page was purged from Cloudflare.
 * The preloader does not start yet automatically after the purge, so at moment 
   it’s correct this behavior.
 * Don’t cache pages for logged in users, it’s not recommended. “Expire” means that
   the page was in cache but is expired and this may depends on expire http headers
   or so other factors. It’s difficult from external give you an accurate answer
 *  Thread Starter [maaw](https://wordpress.org/support/users/maaw/)
 * (@maaw)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/#post-12889014)
 * HI,
 * Thanks a lot i will try.
 * For Preload i mean even the manual one does not work at my side. But yes the 
   automatic preload is a must use feature.
 * I will have a lot of connected customer that they just need to load fast all 
   the common menu items. I have a lot of menu items (Megamenu) and all are common
   for all. Only Cart and My account need to stay dynamic. That’s why i try to cache
   too logged users.
 * Have a great days

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/dynamic-purge/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/dynamic-purge/page/2/?output_format=md)

The topic ‘Dynamic purge’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [maaw](https://wordpress.org/support/users/maaw/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/dynamic-purge/page/2/#post-12901988)
 * Status: resolved