Add (cache)
This commit is contained in:
@@ -25,7 +25,7 @@ public function home(Request $request)
|
||||
// $query->whereNotIn('id', $featured_posts->pluck('id')->toArray());
|
||||
// })->where('status', 'publish')->where('published_at', '<=', now())->orderBy('published_at', 'desc')->limit(10)->get();
|
||||
|
||||
$rss_posts = RssPost::where('status', 'published')->orderBy('published_at', 'desc')->paginate(30);
|
||||
$rss_posts = RssPost::where('status', 'published')->orderBy('published_at', 'desc')->paginate(15);
|
||||
|
||||
return response(view('front.welcome', compact('rss_posts')), 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user