1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00

[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:
jwage 2009-09-01 19:59:58 +00:00
parent 2830d4d835
commit fe1db4026b

View file

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