Fix incorrect cache key
This commit is contained in:
@@ -44,7 +44,7 @@ class HentaiApiController extends Controller
|
||||
public function getMonthlyViews()
|
||||
{
|
||||
// Cache for 60 minutes
|
||||
$data = Cache::remember('api_hentai_list', now()->addMinutes(60), function () {
|
||||
$data = Cache::remember('api_monthly_views', now()->addMinutes(60), function () {
|
||||
return PopularMonthly::selectRaw('DATE(created_at) as date, COUNT(*) as count')
|
||||
->groupBy('date')
|
||||
->orderBy('date', 'asc')
|
||||
|
Reference in New Issue
Block a user