summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2015-03-25 14:52:01 +0100
committerAndreas Fischer <bantu@owncloud.com>2015-03-26 11:06:47 +0100
commitba9446a1b860c8932fa22de09edadb4e04e94c30 (patch)
tree0190e5fed2d6e3eeac552574a9560dc4a697a722 /lib
parent9bc1f0a67ab3ddbb7dca2d85ea9fc0b7a8365e21 (diff)
downloadnextcloud-server-ba9446a1b860c8932fa22de09edadb4e04e94c30.tar.gz
nextcloud-server-ba9446a1b860c8932fa22de09edadb4e04e94c30.zip
Do not use APCu when apc.enabled is Off.
Diffstat (limited to 'lib')
-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) {