Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -N -r16250 -r16300 --- branches/5.2.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 16250) +++ branches/5.2.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 16300) @@ -1,6 +1,6 @@ Application->refreshModuleInfo(); - if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { - $data = $this->Application->getCache('master:config_files', false, $cache ? CacheSettings::$unitCacheRebuildTime : 0); + if ( $cache ) { + if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { + $data = $this->Application->getCache( + 'master:config_files', + false, + CacheSettings::$unitCacheRebuildTime + ); + } + else { + $data = $this->Application->getDBCache( + 'config_files', + CacheSettings::$unitCacheRebuildTime + ); + } } - else { - $data = $this->Application->getDBCache('config_files', $cache ? CacheSettings::$unitCacheRebuildTime : 0); - } if ( $data ) { $this->configFiles = unserialize($data);