How can i delete caches with function?
-
Hi, I have to renew caches after some process and how can I caches? Can you give me functions for delete all caches, only varnish or object cache. I using code below but I think not working.
if (function_exists(‘wp_cache_flush’)) {
wp_cache_flush();
}
if (class_exists(\Breeze_PurgeCache::class)) {
\Breeze_PurgeCache::__flush_object_cache();
}
do_action(‘breeze_clear_varnish’);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.