From 297c685f3c4a5e24267fa30f9e8761f0e7599dfd Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 21 Feb 2006 19:04:38 +0000 Subject: TAPCCache is formally available. --- framework/Data/TMemCache.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/Data/TMemCache.php') diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php index f6ff7da8..b2b1643d 100644 --- a/framework/Data/TMemCache.php +++ b/framework/Data/TMemCache.php @@ -111,9 +111,10 @@ class TMemCache extends TModule implements ICache $this->_cache=new Memcache; if($this->_cache->connect($this->_host,$this->_port)===false) throw new TConfigurationException('memcache_connection_failed',$this->_host,$this->_port); - $this->_prefix=$this->getApplication()->getUniqueID(); + $application=$this->getApplication(); + $this->_prefix=$application->getUniqueID(); + $application->setCache($this); $this->_initialized=true; - $this->getApplication()->setCache($this); } /** -- cgit v1.2.3