1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

remove cache on view page

This commit is contained in:
Simon Vieille 2019-03-13 11:36:19 +01:00
parent e5f996705e
commit 6d84cf319c
No known key found for this signature in database
GPG Key ID: 03383D15A1D31745

View File

@ -31,6 +31,8 @@ class ViewController extends Controller
$viewOptions = $this->getViewOptions($request, $gist, $commit); $viewOptions = $this->getViewOptions($request, $gist, $commit);
if (is_array($viewOptions)) { if (is_array($viewOptions)) {
$viewOptions['no_cache'] = true;
return $this->createResponse('View/view.html.twig', $viewOptions); return $this->createResponse('View/view.html.twig', $viewOptions);
} else { } else {
return $this->notFoundResponse(); return $this->notFoundResponse();