From 8e907b6d98cc1eadaa5602c2a4cb7226170b6962 Mon Sep 17 00:00:00 2001 From: Onran <100285264+Onran0@users.noreply.github.com> Date: Sun, 6 Apr 2025 22:42:18 +0900 Subject: [PATCH] minor fix of caching --- res/modules/bitwise/executor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/modules/bitwise/executor.lua b/res/modules/bitwise/executor.lua index 40e2afad..5e0f1322 100644 --- a/res/modules/bitwise/executor.lua +++ b/res/modules/bitwise/executor.lua @@ -42,7 +42,7 @@ local function execute(str, args, ...) local comp = compiler(str, expArgs) - cache[argsHash] = { } + if not cache[argsHash] then cache[argsHash] = { } end cache[argsHash][str] = comp @@ -58,4 +58,4 @@ local function execute(str, args, ...) end end -return execute \ No newline at end of file +return execute