From 8f023db4630d41dce3142d1bde5624dcad426f38 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Thu, 10 Nov 2011 20:46:51 +0000 Subject: fixed #240 --- framework/Caching/TXCache.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'framework/Caching') 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; } } -- cgit v1.2.3