Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/managers/cache_manager.php
Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Line(s) | |||||
public function DeleteSectionCache() | public function DeleteSectionCache() | ||||
{ | { | ||||
if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | ||||
$this->Application->rebuildCache('master:sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | $this->Application->rebuildCache('master:sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | ||||
} | } | ||||
else { | else { | ||||
$this->rebuildDBCache('sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | $this->rebuildDBCache('sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | ||||
} | } | ||||
if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | |||||
$this->Application->rebuildCache( | |||||
'master:sections_by_unit', | |||||
kCache::REBUILD_LATER, | |||||
CacheSettings::$sectionsParsedRebuildTime | |||||
); | |||||
} | |||||
else { | |||||
$this->rebuildDBCache('sections_by_unit', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | |||||
} | |||||
} | } | ||||
/** | /** | ||||
* Preloads 21 widely used configuration variables, so they will get to cache for sure | * Preloads 21 widely used configuration variables, so they will get to cache for sure | ||||
* | * | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function preloadConfigVars() | protected function preloadConfigVars() | ||||
▲ Show 20 Lines • Show All 429 Lines • Show Last 20 Lines |