From 64a8aeeb3303df5b9e0ca1a3586fbbfee4e46a59 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 --- local/cache/.gitkeep | 0 web/index_dev.php | 2 ++ 2 files changed, 2 insertions(+) delete mode 100755 local/cache/.gitkeep diff --git a/local/cache/.gitkeep b/local/cache/.gitkeep deleted file mode 100755 index e69de29bb..000000000 diff --git a/web/index_dev.php b/web/index_dev.php index f653270d6..a89edaf7a 100755 --- a/web/index_dev.php +++ b/web/index_dev.php @@ -25,6 +25,7 @@ use Symfony\Component\HttpFoundation\Response; use Thelia\Core\Thelia; use Thelia\Core\HttpFoundation\Request; +use Thelia\Core\HttpKernel\HttpCache\HttpCache; //use Symfony\Component\DependencyInjection; @@ -45,6 +46,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); }