Check for Xcache from INI setting
On a shared webhosting the Xcache module is loaded, but it can be disabled with .htaccess `php_flag xcache.cacher Off` which causes issues.
This commit is contained in:
parent
04b48ae12b
commit
7ef3e3a60c
@ -126,7 +126,7 @@ class Setup
|
||||
if ($isDevMode === false && $cache === null) {
|
||||
if (extension_loaded('apc')) {
|
||||
$cache = new \Doctrine\Common\Cache\ApcCache();
|
||||
} elseif (extension_loaded('xcache')) {
|
||||
} elseif (ini_get('xcache.cacher')) {
|
||||
$cache = new \Doctrine\Common\Cache\XcacheCache();
|
||||
} elseif (extension_loaded('memcache')) {
|
||||
$memcache = new \Memcache();
|
||||
|
Loading…
x
Reference in New Issue
Block a user