Clear doubler cache when making mass doubler decisions
This commit is contained in:
parent
3d8fa816c6
commit
dc4b33ab51
|
|
@ -76,6 +76,7 @@ class SeatAuditionFormController extends Controller
|
||||||
// Deal with mass decline doubler request
|
// Deal with mass decline doubler request
|
||||||
if ($request->input('decline-below')) {
|
if ($request->input('decline-below')) {
|
||||||
Cache::forget('audition'.$audition->id.'seating');
|
Cache::forget('audition'.$audition->id.'seating');
|
||||||
|
|
||||||
$changes_made = false;
|
$changes_made = false;
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
$doublerData = $this->doublerService->entryDoublerData($entry);
|
$doublerData = $this->doublerService->entryDoublerData($entry);
|
||||||
|
|
@ -89,6 +90,9 @@ class SeatAuditionFormController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($changes_made) {
|
if ($changes_made) {
|
||||||
|
$cache_key = 'event'.$audition->event_id.'doublers-seating';
|
||||||
|
Cache::forget($cache_key);
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue