From 9ad7c7afc285cfb071595705580bbe8b73d33885 Mon Sep 17 00:00:00 2001 From: w33b Date: Wed, 8 Oct 2025 19:50:55 +0200 Subject: [PATCH] Fix incorrect cache key --- app/Http/Controllers/Api/HentaiApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/HentaiApiController.php b/app/Http/Controllers/Api/HentaiApiController.php index 8fa8356..63c548f 100644 --- a/app/Http/Controllers/Api/HentaiApiController.php +++ b/app/Http/Controllers/Api/HentaiApiController.php @@ -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')