static function InitCacheManager() { if (CacheManager::CachingAvailable(Server::$Configuration->File["gl_caen"]) !== false) { $gttl = min(Server::$Configuration->File["poll_frequency_clients"], Server::$Configuration->File["poll_frequency_tracking"]) * 2; $tttl = abs(min(Server::$Configuration->File["timeout_clients"], Server::$Configuration->File["timeout_chats"]) - 5); $sttl = !empty(Server::$Configuration->File["gl_st_upin"]) ? Server::$Configuration->File["gl_st_upin"] : 3600; $static_ttl = 3600; CacheManager::$ActiveManager = new CacheManager(md5(SUBSITEHOST . Server::$Configuration->File["gl_lzid"] . Server::$Configuration->File["gl_db_prefix"] . Server::$Configuration->File["gl_db_pass"] . Server::$Configuration->File["gl_db_user"] . Server::$Configuration->File["gl_db_name"]), $gttl, array(DATA_CACHE_KEY_VISITORS => array("VISITOR", 512), DATA_CACHE_KEY_EVENTS => array("EVENTS", 128, $static_ttl), DATA_CACHE_KEY_OPERATORS => array("INTERNAL", 256, $tttl, true), DATA_CACHE_KEY_GROUPS => array("GROUPS", 256, $tttl, true), DATA_CACHE_KEY_FILTERS => array("FILTERS", 128, $static_ttl, true), DATA_CACHE_KEY_DBCONFIG => array("DBCNF", 128, $static_ttl), DATA_CACHE_KEY_STATS => array("STATS", 1, $sttl, true), DATA_CACHE_KEY_DATA_TIMES => array("DUT", 1, $static_ttl))); CacheManager::$ActiveManager->Read(); } }