Allow usage of xCache variable cache if xcache_unset_by_prefix() is present.

This commit is contained in:
Andreas Fischer 2013-08-15 03:34:43 +02:00
parent fb2761a203
commit 8d762f659a
1 changed files with 4 additions and 2 deletions

View File

@ -53,8 +53,10 @@ class XCache extends Cache {
if (\OC::$CLI) {
return false;
}
// as soon as admin auth is enabled we can run into issues with admin ops like xcache_clear_cache
if (ini_get('xcache.admin.enable_auth')) {
if (!function_exists('xcache_unset_by_prefix') && ini_get('xcache.admin.enable_auth')) {
// We do not want to use xCache if we can not clear it without
// using the administration function xcache_clear_cache()
// AND administration functions are password-protected.
return false;
}