diff options
author | Otto Sabart <ottosabart@seberm.com> | 2014-01-24 15:52:28 +0100 |
---|---|---|
committer | Otto Sabart <ottosabart@seberm.com> | 2014-01-24 15:52:28 +0100 |
commit | 2f8ebd03b011b705883bf9666b1bdaafb971f110 (patch) | |
tree | b50557aa1e2649598c087f05e805216c73b80c92 /lib | |
parent | 9f003a3546d3f309601c8a4db7245c7649d9c6af (diff) | |
download | nextcloud-server-2f8ebd03b011b705883bf9666b1bdaafb971f110.tar.gz nextcloud-server-2f8ebd03b011b705883bf9666b1bdaafb971f110.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/memcache/apc.php | 2 |
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 { |