summaryrefslogtreecommitdiff
path: root/framework/Caching/TXCache.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-11-10 20:46:51 +0000
committerctrlaltca@gmail.com <>2011-11-10 20:46:51 +0000
commit8f023db4630d41dce3142d1bde5624dcad426f38 (patch)
treecb165cccf348fa7c8d36e89e003cd4b5be8fad47 /framework/Caching/TXCache.php
parent51aa293bdd77fa6a7bc65341c962655ab7ef52e7 (diff)
fixed #240
Diffstat (limited to 'framework/Caching/TXCache.php')
-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;
}
}