Merge pull request #6461 from owncloud/check-xcache-varsize

Do not use xcache variable cache if cache size is 0.
remotes/origin/ldap_group_count
Thomas Müller 2013-12-18 05:36:40 +07:00
commit a90342b781
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;
}
}