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:
parent
e5f996705e
commit
6d84cf319c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user