Commit 2830d4d8 authored by jwage's avatar jwage

[2.0] Changing sandbox to use ArrayCache by default so it doesn't require APC....

[2.0] Changing sandbox to use ArrayCache by default so it doesn't require APC. Added comment with APC as the recommended for production
parent 64638645
......@@ -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.
\ No newline at end of file
// Place your code here. $em is at your service.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment