Browse Source

remove cache on view page

dev-master
Simon Vieille 2 years ago
parent
commit
6d84cf319c
Signed by: deblan GPG Key ID: 03383D15A1D31745
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Gist/Controller/ViewController.php

+ 2
- 0
src/Gist/Controller/ViewController.php 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();


Loading…
Cancel
Save