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.
remotes/origin/ldap_group_count
Otto Sabart 11 years ago
parent 9f003a3546
commit 2f8ebd03b0
  1. 2
      lib/private/memcache/apc.php

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

Loading…
Cancel
Save