Minor cleanup
This commit is contained in:
parent
607dd2460c
commit
caf0b8b859
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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--}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue