1
0
mirror of synced 2025-02-09 08:49:26 +03:00

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:
Michal Zuber 2016-06-22 08:50:36 +02:00 committed by GitHub
parent 04b48ae12b
commit 7ef3e3a60c

View File

@ -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();