fix: 🐛 remove cache for the getFirstHighlighted method in Recipe model
This commit is contained in:
parent
dd5aea8de3
commit
245a863319
1 changed files with 1 additions and 3 deletions
|
|
@ -213,9 +213,7 @@ class Recipe extends Model implements SeoInterface
|
|||
*/
|
||||
public static function getFirstHighlighted(): \App\Models\Recipe|null
|
||||
{
|
||||
return Cache::rememberForever('publishedFirstHighlightedRecipe', function () {
|
||||
return self::query()->where('published', true)->where('highlight', true)->first();
|
||||
});
|
||||
return self::query()->where('published', true)->where('highlight', true)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue