mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Correct regression around ?flush
?flush used to work. There's no reason why it shouldn't.
This commit is contained in:
parent
c8ad29f0d7
commit
73b591a79d
@ -8,7 +8,7 @@
|
||||
class FlushRequestFilter implements RequestFilter {
|
||||
|
||||
public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) {
|
||||
if($request->getVar('flush')) {
|
||||
if(array_key_exists('flush', $request->getVars())) {
|
||||
foreach(ClassInfo::implementorsOf('Flushable') as $class) {
|
||||
$class::flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user