Index: branches/RC/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -N -r9234 -r9776 --- branches/RC/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 9234) +++ branches/RC/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 9776) @@ -230,7 +230,7 @@ } } - function AfterConfigRead() + function AfterConfigRead($store_cache = null) { // if (!$this->ProcessAllConfigs) return ; $this->FinalStage = true; @@ -240,12 +240,17 @@ $this->AfterConfigProcessed[] = $prefix; } - if ($this->StoreCache || (defined('IS_INSTALL') && IS_INSTALL)) { + if (!isset($store_cache)) { + // store cache not overrided -> use global setting + $store_cache = $this->StoreCache; + } + + if ($store_cache || (defined('IS_INSTALL') && IS_INSTALL)) { // cache is not stored during install, but dynamic clones should be processed in any case $this->processDynamicClones(); } - if ($this->StoreCache) { + if ($store_cache) { $this->CacheParsedData(); if ($this->Application->isDebugMode(false) && constOn('DBG_VALIDATE_CONFIGS')) { @@ -281,7 +286,7 @@ $this->ProcessAllConfigs = true; $this->includeConfigFiles(MODULES_PATH, false); $this->ParseConfigs(); - $this->AfterConfigRead(); + $this->AfterConfigRead(false); $this->processDynamicClones(); }