mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
refactor: Remove unused cache for streamers
- Removed the unused caching mechanism for champion streamers to improve code clarity and efficiency.
This commit is contained in:
@@ -31,11 +31,9 @@ class ChampionController extends Controller
|
|||||||
{
|
{
|
||||||
$threeDaysInSeconds = 60 * 60 * 24 * 3;
|
$threeDaysInSeconds = 60 * 60 * 24 * 3;
|
||||||
$sixMonthsInSeconds = 60 * 60 * 24 * 30 * 6;
|
$sixMonthsInSeconds = 60 * 60 * 24 * 30 * 6;
|
||||||
$tenMinutesInSeconds = 60 * 10;
|
|
||||||
|
|
||||||
$champion = Cache::remember('championShowCache' . $champion->slug, $threeDaysInSeconds, static fn () => $champion->load('streamers', 'skins', 'lanes'));
|
$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;
|
$streamers = $champion->load('streamers')->streamers;
|
||||||
|
|
||||||
$splashColor = Cache::remember(
|
$splashColor = Cache::remember(
|
||||||
|
|||||||
Reference in New Issue
Block a user