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:
parent
9eb8a73462
commit
4ee4311c1a
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ class MyController extends Controller
|
||||
|
||||
if (empty($apiKey)) {
|
||||
$regenerateApiKey = true;
|
||||
}
|
||||
}
|
||||
// FIXME: CSRF issue!
|
||||
elseif ($request->request->get('apiKey') === $apiKey && $request->request->has('generateApiKey')) {
|
||||
$regenerateApiKey = true;
|
||||
|
Loading…
Reference in New Issue
Block a user