Remove irrelevant TODO

This commit is contained in:
Matt Young 2024-06-15 17:03:24 -05:00
parent 973dcd7844
commit a6ac8245e5
1 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,7 @@ namespace App\Services;
use App\Models\Audition; use App\Models\Audition;
use App\Models\ScoringGuide; use App\Models\ScoringGuide;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
class AuditionCacheService class AuditionCacheService
@ -17,8 +18,13 @@ class AuditionCacheService
// //
} }
/**
* Return or fill cache of auditions including the audition,
* scoringGuide.subscores, judges, judges_count, and entries_count
* @return Collection
*/
public function getAuditions(): \Illuminate\Database\Eloquent\Collection public function getAuditions(): \Illuminate\Database\Eloquent\Collection
{ //TODO have changes to judging assignments refresh the cache {
return Cache::rememberForever($this->cacheKey, function () { return Cache::rememberForever($this->cacheKey, function () {
return Audition::with(['scoringGuide.subscores','judges']) return Audition::with(['scoringGuide.subscores','judges'])
->withCount('judges') ->withCount('judges')