Minor cleanup

This commit is contained in:
Matt Young 2024-06-26 00:00:15 -05:00
parent 607dd2460c
commit caf0b8b859
2 changed files with 5 additions and 3 deletions

View File

@ -54,13 +54,13 @@ class AuditionCacheService
return $this->getAuditions()->firstWhere('id', $id); return $this->getAuditions()->firstWhere('id', $id);
} }
public function refreshCache() public function refreshCache(): void
{ {
Cache::forget($this->cacheKey); Cache::forget($this->cacheKey);
$this->getAuditions(); $this->getAuditions();
} }
public function clearCache() public function clearCache(): void
{ {
if (App::environment('local')) { if (App::environment('local')) {
Session::flash('success', 'Audition Cache Cleared'); Session::flash('success', 'Audition Cache Cleared');
@ -80,7 +80,7 @@ class AuditionCacheService
}); });
} }
public function clearPublishedAuditionsCache() public function clearPublishedAuditionsCache(): void
{ {
Cache::forget('publishedAuditions'); Cache::forget('publishedAuditions');
} }

View File

@ -25,3 +25,5 @@
</x-layout.app> </x-layout.app>
{{--TODO deal with unlikely scenario of a doubler is entered for seating on some auditions but not others--}}