Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/unit_config_reader.php
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$this->findConfigFiles($full_path, $level + 1); | $this->findConfigFiles($full_path, $level + 1); | ||||
} | } | ||||
} | } | ||||
function includeConfigFiles($folderPath, $cache = true) | function includeConfigFiles($folderPath, $cache = true) | ||||
{ | { | ||||
$data = false; | |||||
$this->Application->refreshModuleInfo(); | $this->Application->refreshModuleInfo(); | ||||
if ( $cache ) { | |||||
if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | ||||
$data = $this->Application->getCache('master:config_files', false, $cache ? CacheSettings::$unitCacheRebuildTime : 0); | $data = $this->Application->getCache( | ||||
'master:config_files', | |||||
false, | |||||
CacheSettings::$unitCacheRebuildTime | |||||
); | |||||
} | } | ||||
else { | else { | ||||
$data = $this->Application->getDBCache('config_files', $cache ? CacheSettings::$unitCacheRebuildTime : 0); | $data = $this->Application->getDBCache( | ||||
'config_files', | |||||
CacheSettings::$unitCacheRebuildTime | |||||
); | |||||
} | |||||
} | } | ||||
if ( $data ) { | if ( $data ) { | ||||
$this->configFiles = unserialize($data); | $this->configFiles = unserialize($data); | ||||
if ( !(defined('DBG_VALIDATE_CONFIGS') && DBG_VALIDATE_CONFIGS) ) { | if ( !(defined('DBG_VALIDATE_CONFIGS') && DBG_VALIDATE_CONFIGS) ) { | ||||
shuffle($this->configFiles); | shuffle($this->configFiles); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 822 Lines • Show Last 20 Lines |