partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit e3dcb092818fa7985f7aee57940f4b8f8ed5192c
parent db5b5ad26dbfadf20fddb4a03450b5700d9109b4
Author: Felicitus <felicitus@felicitus.de>
Date:   Tue, 21 Sep 2010 20:47:14 +0200

Added QueryCache
Diffstat:
Msrc/de/RaumZeitLabor/PartDB2/PartDB2.php | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/de/RaumZeitLabor/PartDB2/PartDB2.php b/src/de/RaumZeitLabor/PartDB2/PartDB2.php @@ -110,6 +110,11 @@ class PartDB2 { $cache = new \Doctrine\Common\Cache\ArrayCache; $config->setMetadataCacheImpl($cache); + $config->setQueryCacheImpl($cache); + + //$logger = new \Doctrine\DBAL\Logging\EchoSQLLogger(); + //$config->setSQLLogger($logger); + /* @todo what's up with this proxy stuff? */ // Proxy configuration $config->setProxyDir(dirname(dirname(dirname(__DIR__))) . '/Proxies');