Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/managers/cache_manager.php
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Line(s) | |||||
if ( $data ) { | if ( $data ) { | ||||
$cache = unserialize($data); // 126 KB all modules | $cache = unserialize($data); // 126 KB all modules | ||||
unset($data); | unset($data); | ||||
$this->Application->InitManagers(); | $this->Application->InitManagers(); | ||||
$this->Application->setFromCache($cache); | $this->Application->setFromCache($cache); | ||||
/** @var kArray $aggregator */ | |||||
$aggregator = $this->Application->recallObject('TagsAggregator', 'kArray'); | $aggregator = $this->Application->recallObject('TagsAggregator', 'kArray'); | ||||
/* @var $aggregator kArray */ | |||||
$aggregator->setFromCache($cache); | $aggregator->setFromCache($cache); | ||||
$this->setFromCache($cache); | $this->setFromCache($cache); | ||||
unset($cache); | unset($cache); | ||||
return true; | return true; | ||||
} | } | ||||
Show All 30 Lines | |||||
/** | /** | ||||
* Updates data, that was parsed from unit configs this time | * Updates data, that was parsed from unit configs this time | ||||
* | * | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function UpdateUnitCache() | public function UpdateUnitCache() | ||||
{ | { | ||||
/** @var kArray $aggregator */ | |||||
$aggregator = $this->Application->recallObject('TagsAggregator', 'kArray'); | $aggregator = $this->Application->recallObject('TagsAggregator', 'kArray'); | ||||
/* @var $aggregator kArray */ | |||||
$this->preloadConfigVars(); // preloading will put to cache | $this->preloadConfigVars(); // preloading will put to cache | ||||
$cache = array_merge( | $cache = array_merge( | ||||
$this->Application->getToCache(), | $this->Application->getToCache(), | ||||
$aggregator->getToCache(), | $aggregator->getToCache(), | ||||
$this->getToCache() | $this->getToCache() | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 511 Lines • Show Last 20 Lines |