WooCommerce Product page Cache | WordPress.org

[ad_1]

Hello @negapo

As you suggested the cache flush is triggered by standard hooks that detect updates on the pages. In addition, we purge everything on menu update, widgets reorder, widgets update, WooCommerce refund creation,

If your plugin does not trigger standard WordPress hooks or you need us to purge the cache, you can use this public function in your code:

      if (function_exists(‘sg_cachepress_purge_cache’)) {

                sg_cachepress_purge_cache();

        }

The cache would be cleared only if the change in the HTML is detected. Stock changes do trigger the automatic cache purge. You should not have problems if you choose to do it via AJAX calls.

If you enable the File-based caching we will create static HTML versions of your website which will be served to future visitors. Other than that the dynamic caching caches the assets which depending on the enabled enhancements might be combined or minified.

Best regards,
Georgi Ganchev
SiteGround.com

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer