| @@ -33,11 +33,12 @@ | ||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | \PoweredCache\Config::factory()->define_wp_cache( false ); |
| 36 | 36 | |
| 37 | +$object_cache_file = untrailingslashit( WP_CONTENT_DIR ) . '/object-cache.php'; | |
| 38 | + | |
| 37 | 39 | // delete object cache file |
| 38 | -if ( file_exists( untrailingslashit( WP_CONTENT_DIR ) . '/object-cache.php' ) | |
| 39 | - && false !== strpos( file_get_contents( $file ), 'POWERED_OBJECT_CACHE' ) ) { | |
| 40 | +if ( file_exists( $object_cache_file ) && false !== strpos( file_get_contents( $object_cache_file ), 'POWERED_OBJECT_CACHE' ) ) { | |
| 40 | 41 | \PoweredCache\Utils\log( sprintf( 'Removing: %s', 'object-cache.php' ) ); |
| 41 | 42 | |
| 42 | 43 | unlink( untrailingslashit( WP_CONTENT_DIR ) . '/object-cache.php' ); |
| 43 | 44 | } |
| @@ -77,5 +78,9 @@ | ||
| 77 | 78 | |
| 78 | 79 | // remove cron tasks |
| 79 | 80 | wp_clear_scheduled_hook( \PoweredCache\Constants\PURGE_CACHE_CRON_NAME ); |
| 80 | 81 | wp_clear_scheduled_hook( \PoweredCache\Constants\PURGE_FO_CRON_NAME ); |
| 82 | + wp_clear_scheduled_hook( \PoweredCache\Constants\DEFERRED_PRELOAD_QUEUE_CRON_NAME ); | |
| 83 | + | |
| 84 | + delete_site_transient( \PoweredCache\Constants\PURGE_CACHE_PLUGIN_NOTICE_TRANSIENT ); | |
| 85 | + delete_transient( \PoweredCache\Constants\PURGE_CACHE_PLUGIN_NOTICE_TRANSIENT ); | |
| 81 | 86 | } |