summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache/apc.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/memcache/apc.php')
-rw-r--r--lib/private/memcache/apc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/memcache/apc.php b/lib/private/memcache/apc.php
index 575ee4427db..e995cbc526e 100644
--- a/lib/private/memcache/apc.php
+++ b/lib/private/memcache/apc.php
@@ -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 {