Explorar el Código

Disable non-existant APC cache and non-recommended Redis cache

Hamilton Turner hace 10 años
padre
commit
c1238fe221

+ 2 - 2
frameworks/PHP/php-symfony2-stripped/app/config/config.yml

@@ -37,5 +37,5 @@ doctrine:
     orm:
         auto_generate_proxy_classes: %kernel.debug%
         auto_mapping: true
-        metadata_cache_driver: apc
-        query_cache_driver: apc
+        # metadata_cache_driver: apc
+        # query_cache_driver: apc

+ 0 - 9
frameworks/PHP/php-symfony2-stripped/web/app.php

@@ -1,18 +1,9 @@
 <?php
 
-use Symfony\Component\ClassLoader\ApcClassLoader;
 use Symfony\Component\HttpFoundation\Request;
 
 $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
 
-// Use APC for autoloading to improve performance.
-// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
-// with other applications also using APC.
-
-$loader = new ApcClassLoader('symfony2Benchmark', $loader);
-$loader->register(true);
-
-
 require_once __DIR__.'/../app/AppKernel.php';
 
 $kernel = new AppKernel('prod', true);

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

@@ -8,14 +8,14 @@ imports:
 framework:
     router:
         strict_requirements: null
-    #validation:
+    # validation:
     #    cache: apc
 
 doctrine:
     orm:
-        metadata_cache_driver: redis
-        #result_cache_driver: apc
-        query_cache_driver: redis
+        # metadata_cache_driver: redis
+        # result_cache_driver: apc
+        # query_cache_driver: redis
 
 monolog:
     handlers: