protected function __construct() { $this->CACHE = new SimpleDataCache(); $this->LOGGER = PsLogger::inst(__CLASS__); /** * Подключаем cache lite */ ExternalPluginsManager::CacheLite(); $liteOptions = array('readControl' => true, 'writeControl' => true, 'readControlType' => 'md5', 'automaticSerialization' => true, 'cacheDir' => DirManager::autogen('cache')->absDirPath(), 'lifeTime' => CACHE_LITE_LIFE_TIME * 60, 'caching' => true); $this->CACHELITE = new Cache_Lite($liteOptions); $GROUPS = self::getCacheGroups(); $TREE[self::CHILD_FOLDING] = Mappings::CACHE_FOLDINGS()->getAllMappedEntitys($GROUPS); $TREE[self::CHILD_DBENTITY] = Mappings::CACHE_DBENTITYS()->getAllMappedEntitys($GROUPS); $this->TREE = new PSCacheTree($this->LOGGER, $TREE); }
public function getTablesWithDependableCaches() { //Мы обратимся к маппингу, хранящему привязку ГруппаКешей -> СущностьБД $cacheMappingHash = Mappings::CACHE_DBENTITYS()->getHash(); return $this->getValues("select distinct rident as value from ps_mappings where mhash=? and rident not like 'v_%'", $cacheMappingHash); }