Skip to content
Permalink
Browse files

+ Added support for APCU in APC cache system detection. Not sure if I…

… need to change something else... I don't remember. I don't really use those on my server. (ManageServer.php)
  • Loading branch information...
Nao committed May 23, 2018
1 parent 35ed2bf commit 2652bcc6a07fb24bd4a494e6b11224e272c92597
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/app/ManageServer.php
@@ -383,7 +383,8 @@ function ModifyCacheSettings($return_config = false)
// Detect available optimizers.
$detected = array();
$detected['APC'] = function_exists('apc_fetch') && function_exists('apc_store') && is_callable('apc_store');
$detected['APC'] = function_exists('apcu_fetch') && function_exists('apcu_store') && is_callable('apcu_store');
$detected['APC'] |= function_exists('apc_fetch') && function_exists('apc_store') && is_callable('apc_store');
$detected['Zend'] = (function_exists('output_cache_put') && is_callable('output_cache_put')) || (function_exists('zend_shm_cache_store') && is_callable('zend_shm_cache_store'));
$detected['Memcached'] = function_exists('memcache_get') && function_exists('memcache_set') && is_callable('memcache_set');
$detected['XCache'] = function_exists('xcache_set') && is_callable('xcache_set') && ini_get('xcache.var_size') > 0;

0 comments on commit 2652bcc

Please sign in to comment.
You can’t perform that action at this time.