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.
remotes/origin/ldap_group_count
Andreas Fischer 2013-12-17 02:20:00 +07:00
parent 4ae148cebd
commit dfeb04a574
1 changed files with 7 additions and 3 deletions

@ -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;
}
}