summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/searcher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/searcher/searcher.lua')
-rw-r--r--server-beta/src/searcher/searcher.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server-beta/src/searcher/searcher.lua b/server-beta/src/searcher/searcher.lua
index 144a0a1e..c7355f93 100644
--- a/server-beta/src/searcher/searcher.lua
+++ b/server-beta/src/searcher/searcher.lua
@@ -102,8 +102,13 @@ function m.eachSpecial(callback)
end
end
+m.cacheTracker = setmetatable({}, { __mode = 'kv' })
+
--- 刷新缓存
function m.refreshCache()
+ if m.cache then
+ m.cache.dead = true
+ end
m.cache = {
eachRef = {},
eachField = {},
@@ -119,6 +124,7 @@ function m.refreshCache()
getGlobals = {},
getLibrary = {},
}
+ m.cacheTracker[m.cache] = true
end
return m