diff --git a/phpgwapi/inc/class.egw_cache_apc.inc.php b/phpgwapi/inc/class.egw_cache_apc.inc.php index 68b7a7d29f..9ddcfafdc3 100644 --- a/phpgwapi/inc/class.egw_cache_apc.inc.php +++ b/phpgwapi/inc/class.egw_cache_apc.inc.php @@ -50,8 +50,9 @@ class egw_cache_apc extends egw_cache_provider_check implements egw_cache_provid */ public static function available() { - $available = false; - if (function_exists('apc_fetch') && (PHP_SAPI != 'cli' || ini_get('apc.enable_cli'))) + $available = (bool)ini_get('apc.enabled'); + + if ($available && function_exists('apc_fetch') && (PHP_SAPI != 'cli' || ini_get('apc.enable_cli'))) { $size = ini_get('apc.shm_size'); // ancent APC (3.1.3) in Debian 6/Squezze has size in MB without a unit