|
|
@@ -259,7 +259,9 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
public function remove($id)
|
|
|
{
|
|
|
$file = $this->_file($id);
|
|
|
- return ($this->_delMetadatas($id) && $this->_remove($file));
|
|
|
+ $boolRemove = $this->_remove($file);
|
|
|
+ $boolMetadata = $this->_delMetadatas($id);
|
|
|
+ return $boolMetadata && $boolRemove;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -672,7 +674,7 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
break;
|
|
|
case Zend_Cache::CLEANING_MODE_OLD:
|
|
|
if (time() > $metadatas['expire']) {
|
|
|
- $result = ($result) && ($this->remove($id));
|
|
|
+ $result = $this->remove($id) && $result;
|
|
|
}
|
|
|
break;
|
|
|
case Zend_Cache::CLEANING_MODE_MATCHING_TAG:
|
|
|
@@ -684,7 +686,7 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
}
|
|
|
}
|
|
|
if ($matching) {
|
|
|
- $result = ($result) && ($this->remove($id));
|
|
|
+ $result = $this->remove($id) && $result;
|
|
|
}
|
|
|
break;
|
|
|
case Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG:
|
|
|
@@ -696,7 +698,7 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
}
|
|
|
}
|
|
|
if (!$matching) {
|
|
|
- $result = ($result) && $this->remove($id);
|
|
|
+ $result = $this->remove($id) && $result;
|
|
|
}
|
|
|
break;
|
|
|
case Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG:
|
|
|
@@ -708,7 +710,7 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
}
|
|
|
}
|
|
|
if ($matching) {
|
|
|
- $result = ($result) && ($this->remove($id));
|
|
|
+ $result = $this->remove($id) && $result;
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
@@ -718,7 +720,7 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
|
|
|
}
|
|
|
if ((is_dir($file)) and ($this->_options['hashed_directory_level']>0)) {
|
|
|
// Recursive call
|
|
|
- $result = ($result) && ($this->_clean($file . DIRECTORY_SEPARATOR, $mode, $tags));
|
|
|
+ $result = $this->_clean($file . DIRECTORY_SEPARATOR, $mode, $tags) && $result;
|
|
|
if ($mode=='all') {
|
|
|
// if mode=='all', we try to drop the structure too
|
|
|
@rmdir($file);
|