diff --git a/src/ts/process/scripts.ts b/src/ts/process/scripts.ts index f7e7e2e5..1f126ccb 100644 --- a/src/ts/process/scripts.ts +++ b/src/ts/process/scripts.ts @@ -75,6 +75,10 @@ function cacheScript(scripts:customscript[], data:string, result:string){ processScriptCache.set(hash, result) + if(processScriptCache.size > 500){ + processScriptCache.delete(processScriptCache.keys().next().value) + } + } function getScriptCache(scripts:customscript[], data:string){