Update TodaysPick.php
This commit is contained in:
@@ -20,7 +20,7 @@ class TodaysPick extends Controller
|
|||||||
*/
|
*/
|
||||||
public function __invoke()
|
public function __invoke()
|
||||||
{
|
{
|
||||||
return Cache::remember('articles.todayspick', 300, function () {
|
return Cache::remember('articles.todayspick', 600, function () {
|
||||||
return Article::with('topics', 'source')
|
return Article::with('topics', 'source')
|
||||||
->whereDate('published_date', Carbon::today())
|
->whereDate('published_date', Carbon::today())
|
||||||
->inRandomOrder()
|
->inRandomOrder()
|
||||||
|
Reference in New Issue
Block a user