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:
Hiroshi Shimoju 2015-01-22 00:46:33 +09:00
parent c8589b3a54
commit 9567a35e0b

View file

@ -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;