minor fix of caching
This commit is contained in:
parent
e279e4ea50
commit
8e907b6d98
@ -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
|
||||
return execute
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user