From e05c6814296fefba2968c98a6f72bc750d3de95f Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Fri, 24 Apr 2026 15:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=93=88=E5=93=88=E5=93=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index cad1c48..406824f 100644 --- a/server/index.js +++ b/server/index.js @@ -1302,7 +1302,8 @@ app.get('/api/metrics/network-history', async (req, res) => { if (force) { await cache.del(cacheKey); - } else { + } + const cached = await cache.get(cacheKey); if (cached) return res.json(cached);