修改视频源脚本缓存时长

This commit is contained in:
mtvpls
2026-03-26 16:50:00 +08:00
parent 8ecb688127
commit 712cd8ac60

View File

@@ -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<string, any>();
const MAX_COMPILED_CACHE_SIZE = 50;