all repos — wp-ffpc @ 7b16741af8f36f03a22ee8527b81547a89f87a24

later
Peter Molnar hello@petermolnar.eu
Thu, 02 Jul 2015 11:17:50 +0100
commit

7b16741af8f36f03a22ee8527b81547a89f87a24

parent

f0c71ec39611f0ae275a0126ccc6ac9ac7b568cf

1 files changed, 1 insertions(+), 6 deletions(-)

jump to
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -988,12 +988,7 @@ *

*/ 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 )) + if ( @is_writable( $this->acache )) return false; /* if no active site left no need for advanced cache :( */