Fix issue with caching on audition seating form
This commit is contained in:
parent
fe72d148e9
commit
d298029f16
|
|
@ -13,6 +13,7 @@ use App\Services\AuditionService;
|
||||||
use App\Services\DoublerService;
|
use App\Services\DoublerService;
|
||||||
use App\Services\EntryService;
|
use App\Services\EntryService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
use function redirect;
|
use function redirect;
|
||||||
|
|
||||||
|
|
@ -62,8 +63,11 @@ class SeatAuditionFormController extends Controller
|
||||||
if ($entry->scoreSheets_count == 0 && ! $entry->hasFlag('no_show')) {
|
if ($entry->scoreSheets_count == 0 && ! $entry->hasFlag('no_show')) {
|
||||||
$entry->addFlag('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 = [];
|
$entryData = [];
|
||||||
|
|
@ -71,6 +75,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');
|
||||||
$changes_made = false;
|
$changes_made = false;
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
$doublerData = $this->doublerService->entryDoublerData($entry);
|
$doublerData = $this->doublerService->entryDoublerData($entry);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue