From 712cd8ac609d0b05ffe46ad6ef087dcd142ec5d9 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Thu, 26 Mar 2026 16:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E6=BA=90?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E7=BC=93=E5=AD=98=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/source-script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/source-script.ts b/src/lib/source-script.ts index 8177963..e0b7ead 100644 --- a/src/lib/source-script.ts +++ b/src/lib/source-script.ts @@ -14,7 +14,7 @@ const _nodeRequire = eval('require') as NodeRequire; // ---- 内存缓存 ---- let _registryCache: { data: SourceScriptRegistry; ts: number } | null = null; -const REGISTRY_CACHE_TTL_MS = 5_000; +const REGISTRY_CACHE_TTL_MS = 4 * 60 * 60 * 1000; const _compiledCache = new Map(); const MAX_COMPILED_CACHE_SIZE = 50;