From e693b4d43e8e6117e14d13169a1655467f617bb7 Mon Sep 17 00:00:00 2001 From: Hiroshi Shimoju Date: Tue, 3 Feb 2015 13:52:35 +0900 Subject: [PATCH] Remove advanced-cache.php when the plugin is deactivated --- wp-ffpc-class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-ffpc-class.php b/wp-ffpc-class.php index f1e00fc..d1c0bb2 100644 --- a/wp-ffpc-class.php +++ b/wp-ffpc-class.php @@ -976,8 +976,10 @@ class WP_FFPC extends PluginAbstract { private function deploy_advanced_cache( ) { /* if no active site left no need for advanced cache :( */ - if ( empty ( $this->global_config ) ) + if ( empty ( $this->global_config ) ) { + unlink ( $this->acache ); return false; + } /* add the required includes and generate the needed code */ $string[] = "