diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2013-10-14 07:10:15 -0700 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2013-10-14 07:10:15 -0700 |
commit | 1dbbb700f7959043ebcc23a3b7530ecb8a396b46 (patch) | |
tree | 6f22defee47e0f6abe2410baeb04b889fb4aea2c /framework | |
parent | 13ec702293301b1229d05a3136e3c8aceb1f8f20 (diff) | |
parent | a985cc203e4a62e654424020eb5fe03023010d0c (diff) |
Merge pull request #487 from polarbearhandler/param_module_cache_fix
TParameterModule::init() bug when using cache
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Util/TParameterModule.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Util/TParameterModule.php b/framework/Util/TParameterModule.php index 9ab25936..5b345b4e 100644 --- a/framework/Util/TParameterModule.php +++ b/framework/Util/TParameterModule.php @@ -69,9 +69,9 @@ class TParameterModule extends TModule $cacheKey='TParameterModule:'.$this->_paramFile; if(($configFile=$cache->get($cacheKey))===false) { - $cacheFile=new TXmlDocument; - $cacheFile->loadFromFile($this->_paramFile); - $cache->set($cacheKey,$cacheFile,0,new TFileCacheDependency($this->_paramFile)); + $configFile=new TXmlDocument; + $configFile->loadFromFile($this->_paramFile); + $cache->set($cacheKey,$configFile,0,new TFileCacheDependency($this->_paramFile)); } } else |