Add check for apc.enabled option

Sometimes it's not possible to disable APC entirely and some of
apc_functions are disabled. Only thing which is possible is
to disable apc.enable option.
This commit is contained in:
Otto Sabart 2014-01-24 15:52:28 +01:00 committed by Victor Dubiniuk
parent 4c305ef459
commit e6391d84a1

View file

@ -50,6 +50,8 @@ class APC extends Cache {
static public function isAvailable() {
if (!extension_loaded('apc')) {
return false;
} elseif (!ini_get('apc.enabled')) {
return false;
} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
return false;
} else {