]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add check for apc.enabled option
authorOtto Sabart <ottosabart@seberm.com>
Fri, 24 Jan 2014 14:52:28 +0000 (15:52 +0100)
committerOtto Sabart <ottosabart@seberm.com>
Fri, 24 Jan 2014 14:52:28 +0000 (15:52 +0100)
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.

lib/private/memcache/apc.php

index 575ee4427db6d5773466ec573e906026fcc3f740..e995cbc526eaa00cb70511bf9cc9b4a4d76a570b 100644 (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 {