Remove irrelevant TODO
This commit is contained in:
parent
973dcd7844
commit
a6ac8245e5
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue