Skip to content

Commit 39c81aa

Browse files
author
Simon Prosser
authored
Add wp fastest cache support (#3)
1 parent c885208 commit 39c81aa

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

beaver-cache-helper.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function clear_caches() {
4141
if ( function_exists( 'sg_cachepress_purge_cache' ) ) {
4242
sg_cachepress_purge_cache();
4343
}
44-
44+
4545
// varnish
4646
@wp_remote_request( get_site_url(), array( 'method' => 'BAN' ) );
4747

@@ -55,6 +55,12 @@ public static function clear_caches() {
5555
Cache_Enabler::clear_total_cache();
5656
}
5757

58+
// wp fastest cache
59+
if( class_exists( 'WpFastestCache' ) ) {
60+
global $wp_fastest_cache;
61+
$wp_fastest_cache->deleteCache( true );
62+
}
63+
5864
error_log( 'Cleared Caches' );
5965
}
6066
/**

0 commit comments

Comments
 (0)