From 84558ef6688c0f45a2e7af5096764bbe02bc03d9 Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Mon, 1 Dec 2008 13:37:30 +0000 Subject: Issue 75 - TApplication::setRuntimePath() to update uniqueID and cacheFile --- framework/TApplication.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index 03ca3f05..e21bd4e7 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -577,6 +577,10 @@ class TApplication extends TComponent public function setRuntimePath($value) { $this->_runtimePath=$value; + if($cacheConfig) + $this->_cacheFile=$this->_runtimePath.DIRECTORY_SEPARATOR.self::CONFIGCACHE_FILE; + // generates unique ID by hashing the runtime path + $this->_uniqueID=md5($this->_runtimePath); } /** -- cgit v1.2.3