diff options
| author | ctrlaltca@gmail.com <> | 2011-11-10 20:46:51 +0000 | 
|---|---|---|
| committer | ctrlaltca@gmail.com <> | 2011-11-10 20:46:51 +0000 | 
| commit | 8f023db4630d41dce3142d1bde5624dcad426f38 (patch) | |
| tree | cb165cccf348fa7c8d36e89e003cd4b5be8fad47 /framework/Caching/TXCache.php | |
| parent | 51aa293bdd77fa6a7bc65341c962655ab7ef52e7 (diff) | |
fixed #240
Diffstat (limited to 'framework/Caching/TXCache.php')
| -rw-r--r-- | framework/Caching/TXCache.php | 7 | 
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;
  	}
  }
  | 
