We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6026e75 commit c0f767aCopy full SHA for c0f767a
cake/libs/cache/xcache.php
@@ -106,16 +106,12 @@ function delete($key) {
106
* @access public
107
*/
108
function clear() {
109
- $result = true;
110
$this->__auth();
111
for ($i = 0, $max = xcache_count(XC_TYPE_VAR); $i < $max; $i++) {
112
- if (!xcache_clear_cache(XC_TYPE_VAR, $i)) {
113
- $result = false;
114
- break;
115
- }
+ xcache_clear_cache(XC_TYPE_VAR, $i);
116
}
117
$this->__auth(true);
118
- return $result;
+ return xcache_count(XC_TYPE_VAR) == 0;
119
120
/**
121
* Populates and reverses $_SERVER authentication values
0 commit comments