sg_cachepress_purge_cache not working
-
Hi,
We love this plugin and have been very happy users. Thank you so much.
4 months ago Stanimir helped us to use the sg_cachepress_purge_cache in our webshop. We have a setting store-owners can adjust for their store. The functions we have is so any changes made are saved, and with our function in child-theme functions.php the cache is purged. So if the functions is triggered, we also purge the cache of your plugin.
Recently we discovered the purge unfortunately is no longer working. If we manually purge cache from backend of the website it works. But the function does not work.
The code we used is this:
`// add class on checkbox
function my_body_classes( $classes ) {
if( wfs_is_service_enabled() ) {
$classes[] = ‘StoreIsNOTServing’;
}
if (function_exists(‘sg_cachepress_purge_everything’)) {
sg_cachepress_purge_everything();
}
return $classes;}
add_filter( ‘body_class’,’my_body_classes’ );`We have SiteGround Optimizer 6.0.3. Please let us know if you need any more information or access.
- The topic ‘sg_cachepress_purge_cache not working’ is closed to new replies.