From 6737b5ab5d32a8d53bcb41a473946f82334fc4e9 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 5 Oct 2006 20:19:11 +0000 Subject: Fixed #409. --- HISTORY | 1 + framework/Web/Services/TPageService.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index ce0185ad..231b73bb 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,6 @@ Version 3.0.5 October 8, 2006 =============================== +BUG: Ticket#409 - Multiple page services will mess up page caching CHG: Ticket#358 - TFileUpload::saveAs() now returns false instead of exception when error (Qiang) ENH: Ticket#361 - Introduced include template tag that supports including external templates (Qiang) ENH: Ticket#366 - white spaces are now allowed around attribute names in template (Qiang) diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 087cb12a..ac4787f2 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -240,7 +240,7 @@ class TPageService extends TService { $configCached=true; $currentTimestamp=array(); - $arr=$cache->get(self::CONFIG_CACHE_PREFIX.$pagePath); + $arr=$cache->get(self::CONFIG_CACHE_PREFIX.$this->getID().$pagePath); if(is_array($arr)) { list($pageConfig,$timestamps)=$arr; @@ -284,7 +284,7 @@ class TPageService extends TService if($config!==null) $pageConfig->loadXmlElement($config,$application->getBasePath(),null); $pageConfig->loadConfigurationFiles($pagePath,$this->getBasePath()); - $cache->set(self::CONFIG_CACHE_PREFIX.$pagePath,array($pageConfig,$currentTimestamp)); + $cache->set(self::CONFIG_CACHE_PREFIX.$this->getID().$pagePath,array($pageConfig,$currentTimestamp)); } } return $pageConfig; -- cgit v1.2.3