1
0
mirror of synced 2024-12-05 03:06:05 +03:00

[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:
jwage 2009-09-01 19:54:48 +00:00
parent 64638645ba
commit 2830d4d835
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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.