summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2015-03-25 14:52:01 +0100
committerAndreas Fischer <bantu@owncloud.com>2015-03-25 14:52:01 +0100
commit630b7edc546778f9454e469e637df25055f7d4ad (patch)
tree75e260d8aacb3ca675a69dc11853f1d64d26f542 /lib/private/memcache
parente188f0e4368ad1b34ecc35fcafa277f0e3946c01 (diff)
downloadnextcloud-server-630b7edc546778f9454e469e637df25055f7d4ad.tar.gz
nextcloud-server-630b7edc546778f9454e469e637df25055f7d4ad.zip
Do not use APCu when apc.enabled is Off.
Diffstat (limited to 'lib/private/memcache')
-rw-r--r--lib/private/memcache/apcu.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/memcache/apcu.php b/lib/private/memcache/apcu.php
index 1043690a361..410877e2eec 100644
--- a/lib/private/memcache/apcu.php
+++ b/lib/private/memcache/apcu.php
@@ -12,6 +12,8 @@ class APCu extends APC {
static public function isAvailable() {
if (!extension_loaded('apcu')) {
return false;
+ } elseif (!ini_get('apc.enabled')) {
+ return false;
} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
return false;
} elseif (version_compare(phpversion('apc'), '4.0.6') === -1) {