From d298029f1619a1e63d5a130b12bafbfc209fdc49 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Sat, 9 Nov 2024 13:04:13 -0600 Subject: [PATCH] Fix issue with caching on audition seating form --- .../Controllers/Tabulation/SeatAuditionFormController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php index e2c5b4e..e2ad8d6 100644 --- a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php +++ b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php @@ -13,6 +13,7 @@ use App\Services\AuditionService; use App\Services\DoublerService; use App\Services\EntryService; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Cache; use function redirect; @@ -62,8 +63,11 @@ class SeatAuditionFormController extends Controller if ($entry->scoreSheets_count == 0 && ! $entry->hasFlag('no_show')) { $entry->addFlag('no_show'); } + Cache::forget('entryScore-'.$entry->id.'-seating'); + Cache::forget('entryScore-'.$entry->id.'-advancement'); } - + Cache::forget('audition'.$audition->id.'seating'); + Cache::forget('audition'.$audition->id.'advancement'); } $entryData = []; @@ -71,6 +75,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);