From 6d84cf319c5de07e736636517aebec187a5f6b23 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 13 Mar 2019 11:36:19 +0100 Subject: [PATCH] remove cache on view page --- src/Gist/Controller/ViewController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gist/Controller/ViewController.php b/src/Gist/Controller/ViewController.php index e878902..efbce98 100644 --- a/src/Gist/Controller/ViewController.php +++ b/src/Gist/Controller/ViewController.php @@ -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();