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

Cache remove on pages with form

This commit is contained in:
Simon Vieille 2018-09-11 13:15:12 +02:00
parent 9eb8a73462
commit 4ee4311c1a
No known key found for this signature in database
GPG Key ID: 919533E2B946EA10
3 changed files with 5 additions and 1 deletions

View File

@ -60,6 +60,7 @@ class EditController extends Controller
array(
'gist' => isset($gist) ? $gist : null,
'form' => $form->createView(),
'no_cache' => true,
)
);
}
@ -109,6 +110,7 @@ class EditController extends Controller
}
$viewOptions['form'] = $form->createView();
$viewOptions['no_cache'] = true;
return $this->createResponse('Edit/clone.html.twig', $viewOptions);
}

View File

@ -63,6 +63,7 @@ class LoginController extends Controller
'form' => $form->createView(),
'error' => isset($error) ? $error : '',
'success' => isset($success) ? $success : '',
'no_cache' => true,
]
);
}
@ -102,6 +103,7 @@ class LoginController extends Controller
[
'form' => $form->createView(),
'error' => isset($error) ? $error : '',
'no_cache' => true,
]
);
}