summaryrefslogtreecommitdiff
path: root/framework/Caching
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Caching')
-rw-r--r--framework/Caching/TXCache.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Caching/TXCache.php b/framework/Caching/TXCache.php
index f97a9c23..ca9e19c1 100644
--- a/framework/Caching/TXCache.php
+++ b/framework/Caching/TXCache.php
@@ -119,7 +119,12 @@ class TXCache extends TCache
*/
public function flush()
{
- return xcache_clear_cache();
+ for($i=0, $max=xcache_count(XC_TYPE_VAR); $i<$max; $i++)
+ {
+ if(xcache_clear_cache(XC_TYPE_VAR, $i)===false)
+ return false;
+ }
+ return true;
}
}