wpFastestCacheStatus ) ) { // update 2.4.10 if ( version_compare( Cookie_Notice()->db_version, '2.4.9', '<=' ) ) $this->delete_cache(); // delete cache files after updating settings or status add_action( 'cn_configuration_updated', [ $this, 'delete_cache' ] ); } } /** * Delete all cache files. * * @return void */ public function delete_cache() { if ( isset( $GLOBALS['wp_fastest_cache'] ) && method_exists( $GLOBALS['wp_fastest_cache'], 'deleteCache' ) ) $GLOBALS['wp_fastest_cache']->deleteCache( false ); } } new Cookie_Notice_Modules_WPFastestCache();