Skip to content

Commit

Permalink
Let's try the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lologhi committed Aug 2, 2016
1 parent 05f12ce commit 8b19cc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,19 @@
// You should change the ApcClassLoader first argument to a unique prefix
// in order to prevent cache key conflicts with other applications
// also using APC.
/*
$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader);
$loader->unregister();
$apcLoader->register(true);
*/

require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
require_once __DIR__.'/../app/AppCache.php';

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);

// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
Expand Down

0 comments on commit 8b19cc6

Please sign in to comment.