From 39e9acf85bd61503dffc96b80f6e28d11814b453 Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Sat, 23 Mar 2024 03:06:32 +0100 Subject: [PATCH] refactor: Remove unused cache for streamers - Removed the unused caching mechanism for champion streamers to improve code clarity and efficiency. --- app/Http/Controllers/ChampionController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Http/Controllers/ChampionController.php b/app/Http/Controllers/ChampionController.php index 981e141..5d2baf3 100644 --- a/app/Http/Controllers/ChampionController.php +++ b/app/Http/Controllers/ChampionController.php @@ -31,11 +31,9 @@ class ChampionController extends Controller { $threeDaysInSeconds = 60 * 60 * 24 * 3; $sixMonthsInSeconds = 60 * 60 * 24 * 30 * 6; - $tenMinutesInSeconds = 60 * 10; $champion = Cache::remember('championShowCache' . $champion->slug, $threeDaysInSeconds, static fn () => $champion->load('streamers', 'skins', 'lanes')); - //$streamers = Cache::remember('championStreamersCache' . $champion->slug, $tenMinutesInSeconds, static fn () => $champion->streamers); $streamers = $champion->load('streamers')->streamers; $splashColor = Cache::remember(