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
