[2.0] Changing sandbox to use ArrayCache by default so it doesn't require APC. Added comment with APC as the recommended for production
This commit is contained in:
parent
64638645ba
commit
2830d4d835
@ -7,7 +7,8 @@ $classLoader->setBasePath('Doctrine', realpath(__DIR__ . '/../../lib'));
|
||||
$classLoader->setBasePath('Entities', __DIR__);
|
||||
|
||||
$config = new \Doctrine\ORM\Configuration;
|
||||
$cache = new \Doctrine\Common\Cache\ApcCache;
|
||||
$cache = new \Doctrine\Common\Cache\ArrayCache;
|
||||
// $cache = new \Doctrine\Common\Cache\ApcCache; # RECOMMENDED FOR PRODUCTION
|
||||
$config->setMetadataCacheImpl($cache);
|
||||
$config->setQueryCacheImpl($cache);
|
||||
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
require 'config.php';
|
||||
|
||||
// Place your code here. $em is at your service.
|
||||
// Place your code here. $em is at your service.
|
||||
|
Loading…
Reference in New Issue
Block a user