add httpcache into index_dev.php file

This commit is contained in:
Manuel Raynaud
2013-10-06 10:49:57 +02:00
parent 9390a8b3fc
commit 64a8aeeb33
2 changed files with 2 additions and 0 deletions

View File

View File

@@ -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);
}