[2.0] Updating sandbox cli to use APC again but adding comment to use ArrayCache if APC is not available
This commit is contained in:
parent
2830d4d835
commit
fe1db4026b
1 changed files with 4 additions and 2 deletions
|
@ -7,8 +7,10 @@ $classLoader->setBasePath('Doctrine', realpath(__DIR__ . '/../../lib'));
|
|||
$classLoader->setBasePath('Entities', __DIR__);
|
||||
|
||||
$config = new \Doctrine\ORM\Configuration;
|
||||
$cache = new \Doctrine\Common\Cache\ApcCache;
|
||||
// Use ArrayCache is APC is not available
|
||||
// Warning without APC Doctrine will not perform as well
|
||||
$cache = new \Doctrine\Common\Cache\ArrayCache;
|
||||
// $cache = new \Doctrine\Common\Cache\ApcCache; # RECOMMENDED FOR PRODUCTION
|
||||
$config->setMetadataCacheImpl($cache);
|
||||
$config->setQueryCacheImpl($cache);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue