remove cache on view page

This commit is contained in:
Simon Vieille 2019-03-13 11:36:19 +01:00
parent e5f996705e
commit 6d84cf319c
Signed by: deblan
GPG Key ID: 03383D15A1D31745
1 changed files with 2 additions and 0 deletions

View File

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