PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / trunk
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score vtrunk
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.2 2.2.1 All 69 releases
← All changes | uninstall.php +7 -2 2.2.1trunk View file →
@@ -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 }