mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 19:32:28 -04:00
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.
This commit is contained in:
parent
4c305ef459
commit
e6391d84a1
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue