tweak httpFoundation cache part for compatibility with

Thelia\HttpFoundation part
This commit is contained in:
Manuel Raynaud
2013-10-06 19:30:58 +02:00
parent 6a80dde83b
commit 64c5991838
6 changed files with 126 additions and 23 deletions

View File

@@ -44,9 +44,10 @@ 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);
$thelia = new HttpCache($thelia);
$response = $thelia->handle($request)->send();
//$thelia->terminate($request, $response);
}