Hello @tasoft,
You can use the following public function, to purge the entire cache:
if (function_exists('sg_cachepress_purge_cache')) {
sg_cachepress_purge_cache();
}
Alternatively, you can pass an URL to the function to clear the cache for this specific page, instead of flushing the entire cache:
if (function_exists('sg_cachepress_purge_cache')) {
sg_cachepress_purge_cache('https://yoursite.com/pluginpage');
}
For more details please refer to our official documentation:
The cache purging and exclude functions can be found in the “Plugin Compatibility” section.
Best Regards,
Tsvetan Mitev