Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/install/install_toolkit.php
Show First 20 Lines • Show All 961 Lines • ▼ Show 20 Line(s) | |||||
* @return Array | * @return Array | ||||
*/ | */ | ||||
public function getWorkingCacheHandlers($current = null) | public function getWorkingCacheHandlers($current = null) | ||||
{ | { | ||||
if ( !isset($current) ) { | if ( !isset($current) ) { | ||||
$current = $this->systemConfig->get('CacheHandler', 'Misc'); | $current = $this->systemConfig->get('CacheHandler', 'Misc'); | ||||
} | } | ||||
$cache_handler = $this->Application->makeClass('kCache'); | $max_cache_duration = 60 * 60 * 24 * $this->systemConfig->get('MaxCacheDuration', 'Misc'); | ||||
$cache_handler = $this->Application->makeClass('kCache', array($max_cache_duration)); | |||||
$cache_handlers = Array ( | $cache_handlers = Array ( | ||||
'Fake' => 'None', | 'Fake' => 'None', | ||||
'Memcached' => 'Memcached (via "Memcached" extension)', | 'Memcached' => 'Memcached (via "Memcached" extension)', | ||||
'Memcache' => 'Memcached (via "Memcache" extension)', | 'Memcache' => 'Memcached (via "Memcache" extension)', | ||||
'XCache' => 'XCache', | 'XCache' => 'XCache', | ||||
'Apc' => 'Alternative PHP Cache', | 'Apc' => 'Alternative PHP Cache', | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |