Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/managers/cache_manager.php
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Line(s) | |||||
$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() | ||||
); | ); | ||||
if ( $this->Application->isWebRequest() ) { | |||||
$cache_rebuild_by = SERVER_NAME . ' (' . $this->Application->getClientIp() . ') - ' . date('d/m/Y H:i:s'); | $cache_rebuild_by = SERVER_NAME . ' (' . $this->Application->getClientIp() . ') - ' . date('d/m/Y H:i:s'); | ||||
} | |||||
else { | |||||
$cache_rebuild_by = 'CLI - ' . date('d/m/Y H:i:s'); | |||||
} | |||||
if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | ||||
$this->Application->setCache('master:configs_parsed', serialize($cache)); | $this->Application->setCache('master:configs_parsed', serialize($cache)); | ||||
$this->Application->setCache('master:last_cache_rebuild', $cache_rebuild_by); | $this->Application->setCache('master:last_cache_rebuild', $cache_rebuild_by); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->setDBCache('configs_parsed', serialize($cache)); | $this->Application->setDBCache('configs_parsed', serialize($cache)); | ||||
$this->Application->setDBCache('last_cache_rebuild', $cache_rebuild_by); | $this->Application->setDBCache('last_cache_rebuild', $cache_rebuild_by); | ||||
▲ Show 20 Lines • Show All 501 Lines • Show Last 20 Lines |