From 9567a35e0b1d0382e76c9ada03f5afff99ee149a Mon Sep 17 00:00:00 2001 From: Hiroshi Shimoju Date: Thu, 22 Jan 2015 00:46:33 +0900 Subject: [PATCH] Not remove advanced-cache.php when save settings There is no need to remove advanced-cache.php because file_put_contents() to overwrite existing file. --- wp-ffpc-class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wp-ffpc-class.php b/wp-ffpc-class.php index eee1ca4..f1e00fc 100644 --- a/wp-ffpc-class.php +++ b/wp-ffpc-class.php @@ -975,14 +975,6 @@ class WP_FFPC extends PluginAbstract { */ private function deploy_advanced_cache( ) { - /* in case advanced-cache.php was already there, remove it */ - if ( @file_exists( $this->acache )) - unlink ($this->acache); - - /* is deletion was unsuccessful, die, we have no rights to do that, fail */ - if ( @file_exists( $this->acache )) - return false; - /* if no active site left no need for advanced cache :( */ if ( empty ( $this->global_config ) ) return false;