diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-12-17 02:20:00 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-12-17 02:40:16 +0100 |
commit | dfeb04a574a5d2f3c4288f8195e6926ac9bca4cf (patch) | |
tree | 48cfded165323cbc078e7cfa7a4f9955d378befa /lib/private/memcache | |
parent | 4ae148cebdbbab6291a77b62a0ecba2c6b92ae13 (diff) | |
download | nextcloud-server-dfeb04a574a5d2f3c4288f8195e6926ac9bca4cf.tar.gz nextcloud-server-dfeb04a574a5d2f3c4288f8195e6926ac9bca4cf.zip |
Do not use xcache variable cache if cache size is 0.
This is possible because it is possible to only use xcache as an opcode cache
but not a variable cache.
Diffstat (limited to 'lib/private/memcache')
-rw-r--r-- | lib/private/memcache/xcache.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/memcache/xcache.php b/lib/private/memcache/xcache.php index 33de30562f9..4485f905207 100644 --- a/lib/private/memcache/xcache.php +++ b/lib/private/memcache/xcache.php @@ -44,11 +44,15 @@ class XCache extends Cache { static public function isAvailable(){ if (!extension_loaded('xcache')) { return false; - } elseif (\OC::$CLI) { + } + if (\OC::$CLI) { return false; - }else{ - return true; } + $var_size = (int) ini_get('xcache.var_size'); + if (!$var_size) { + return false; + } + return true; } } |