Skip to content

Commit b06ba33

Browse files
committed
#435 #437 why not cache generic results?
1 parent fb63bf2 commit b06ba33

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: script/parser/guide.lua

-5
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,6 @@ function m.checkSameSimpleByDocType(status, doc, args)
17871787
local pieceResult = stepRefOfGeneric(status, piece, args, 'def')
17881788
for _, res in ipairs(pieceResult) do
17891789
results[#results+1] = res
1790-
status.hasGenericResult = true
17911790
end
17921791
else
17931792
local pieceResult = stepRefOfDocType(status, piece, 'def')
@@ -3151,10 +3150,6 @@ function m.getRefCache(status, obj, mode)
31513150
end
31523151
status.share.cacheLock[mode][obj] = {}
31533152
return nil, function ()
3154-
if status.hasGenericResult then
3155-
status.share.cacheLock[mode][obj] = nil
3156-
return
3157-
end
31583153
sourceCache = {}
31593154
local results = status.results
31603155
for i = 1, #results do

0 commit comments

Comments
 (0)