From dc4b33ab51044db7310cb2e3dce249638ed8e696 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Fri, 22 Nov 2024 12:25:23 -0600 Subject: [PATCH] Clear doubler cache when making mass doubler decisions --- .../Controllers/Tabulation/SeatAuditionFormController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php index b95a162..84dcf06 100644 --- a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php +++ b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php @@ -76,6 +76,7 @@ class SeatAuditionFormController extends Controller // Deal with mass decline doubler request if ($request->input('decline-below')) { Cache::forget('audition'.$audition->id.'seating'); + $changes_made = false; foreach ($entries as $entry) { $doublerData = $this->doublerService->entryDoublerData($entry); @@ -89,6 +90,9 @@ class SeatAuditionFormController extends Controller } } if ($changes_made) { + $cache_key = 'event'.$audition->event_id.'doublers-seating'; + Cache::forget($cache_key); + return redirect()->back(); } }