From 58edba247dfec4f425e91d0e326038944cbbee6a Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Tue, 3 Mar 2026 18:17:31 +0900 Subject: [PATCH] feat: Update cache expiration times for event list and match info - Increased the cache expiration time for event lists from 30 minutes to 72 hours. - Increased the cache expiration time for match info from 3 minutes to 72 hours. --- src/utils/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/server.ts b/src/utils/server.ts index fdee18f..a92c651 100644 --- a/src/utils/server.ts +++ b/src/utils/server.ts @@ -44,7 +44,7 @@ export async function listEvent(tagid: string): Promise { let html = await redis.get(key); if (!html) { html = await fetchEventListHTML(tagid); - await redis.setex(key, 60 * 30, html); + await redis.setex(key, 60 * 60 * 72, html); } return parseEventList(html); } @@ -118,7 +118,7 @@ export async function getMatchInfo(matchId: string) { let html = await redis.get(key); if (!html) { html = await fetchEventContentHTML(matchId); - await redis.setex(key, 60 * 3, html); + await redis.setex(key, 60 * 72, html); } return parseEventInfo(html); }