Skip to content

Commit

Permalink
Merge pull request #5897 from mikaelz/patch-1
Browse files Browse the repository at this point in the history
Check for Xcache from INI setting
  • Loading branch information
Ocramius authored Nov 26, 2016
2 parents 28025b8 + 7ef3e3a commit dc7c6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function createConfiguration($isDevMode = false, $proxyDir = null,
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();
Expand Down

0 comments on commit dc7c6ed

Please sign in to comment.