Merge pull request #6461 from owncloud/check-xcache-varsize
Do not use xcache variable cache if cache size is 0.
This commit is contained in:
commit
a90342b781
|
@ -44,11 +44,15 @@ class XCache extends Cache {
|
|||
static public function isAvailable(){
|
||||
if (!extension_loaded('xcache')) {
|
||||
return false;
|
||||
} elseif (\OC::$CLI) {
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
if (\OC::$CLI) {
|
||||
return false;
|
||||
}
|
||||
$var_size = (int) ini_get('xcache.var_size');
|
||||
if (!$var_size) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue