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.
This commit is contained in:
parent
c8589b3a54
commit
9567a35e0b
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue