0

Full page caching with Symfony2 and the Symfony2 reverse proxy

Activate the cache in web/app.php require_once __DIR__.’/../app/bootstrap.php.cache’; require_once __DIR__.’/../app/AppKernel.php’; require_once __DIR__.’/../app/AppCache.php’; use Symfony\Component\HttpFoundation\Request; $kernel = new AppKernel(‘prod’, false); $kernel->loadClassCache(); $kernel = new AppCache($kernel); $kernel->handle(Request::createFromGlobals())->send(); After that, go to your controller action. At first, you will need to create a new… Continue Reading