lithium\storage\cache\adapter\Apc::enabled()

public static method

Determines if the APC extension has been installed and if the userspace cache is available.

Returns

boolean

true if enabled, false otherwise.

Source

	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);
	}