Skip to content
Snippets Groups Projects
Commit c8f0cbab authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #15194 from owncloud/fix-15146

Do not use APCu when apc.enabled is Off.
parents 40b77eb9 630b7edc
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment