Extends
lithium\core\Object
Determines if the APC extension has been installed and
if the userspace cache is available.
Returns
boolean `true` if enabled, `false` otherwiseSource
public static function enabled() {
$loaded = extension_loaded('apc');
$isCli = (php_sapi_name() === 'cli');
$enabled = (!$isCli && ini_get('apc.enabled')) || ($isCli && ini_get('apc.enable_cli'));
return ($loaded && $enabled);
}