瀏覽代碼

Enabled APC cache for doctrine metadata & queries

Doctrine is never intended to be used in any live environment without metadata and query caching (note this is not result caching). Its performance will be significantly impeded without it
Peter Mitchell 12 年之前
父節點
當前提交
ab1e56bb2a
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      php-symfony2/app/config/config_prod.yml

+ 4 - 4
php-symfony2/app/config/config_prod.yml

@@ -11,11 +11,11 @@ framework:
     #validation:
     #    cache: apc
 
-#doctrine:
-#    orm:
-#        metadata_cache_driver: apc
+doctrine:
+    orm:
+        metadata_cache_driver: apc
 #        result_cache_driver: apc
-#        query_cache_driver: apc
+        query_cache_driver: apc
 
 monolog:
     handlers: