XCache isAvailable check fails in OC9 #23653

getriebesand opened this Issue Mar 30, 2016 · 3 comments


None yet

5 participants


in my xcache.ini I have
xcache.var_size = 64M

core/lib/private/memcache/xcache.php XCache::isAvailable()
in OC8
$var_size = (int) ini_get('xcache.var_size');
$var_size is now 64

in OC9
$var_size = \OC::$server->getIniWrapper()->getNumeric('xcache.var_size')
$var_size is now false;

The Method \OC::$server->getIniWrapper()->getNumeric() uses is_numeric() which fails on the string "64M"

@LukasReschke LukasReschke added the bug label Mar 30, 2016
@LukasReschke LukasReschke added this to the 9.0.2-next-maintenance milestone Mar 30, 2016

should use getBytes I guess?


Can you test that @getriebesand


yes...getBytes('xcache.var_size') returns 67108864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment