Fix incorrect cache key

This commit is contained in:
2025-10-08 19:50:55 +02:00
parent 6c8d34b030
commit 9ad7c7afc2

View File

@@ -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')