From 6a80dde83bdb6658324707aaafce76a64c4ab28e Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Sun, 6 Oct 2013 10:49:57 +0200 Subject: [PATCH] add httpcache into index_dev.php file --- web/index_dev.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/index_dev.php b/web/index_dev.php index 6b06585cd..7d9e61bd8 100755 --- a/web/index_dev.php +++ b/web/index_dev.php @@ -24,6 +24,7 @@ use Thelia\Core\Thelia; use Thelia\Core\HttpFoundation\Response; use Thelia\Core\HttpFoundation\Request; +use Thelia\Core\HttpKernel\HttpCache\HttpCache; //use Symfony\Component\DependencyInjection; @@ -43,6 +44,7 @@ if ( false === in_array($request->getClientIp(), $trustedIp)) { $response = Response::create('Forbidden', 403)->send(); $thelia->terminate($request, $response); } else { + //$thelia = new HttpCache($thelia); $response = $thelia->handle($request)->prepare($request)->send(); $thelia->terminate($request, $response); }