mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-01-06 11:50:58 +07:00
fix query cache reset
This commit is contained in:
14
evolved.lua
14
evolved.lua
@@ -7020,12 +7020,15 @@ __evolved_set(__INCLUDES, __ON_SET, function(query, _, include_list)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
__evolved_set(__INCLUDES, __ON_REMOVE, function(query)
|
__evolved_set(__INCLUDES, __ON_REMOVE, function(query)
|
||||||
if not __sorted_excludes[query] then
|
|
||||||
__remove_major_query(query)
|
__remove_major_query(query)
|
||||||
end
|
|
||||||
|
|
||||||
|
__query_chunks[query] = nil
|
||||||
__sorted_includes[query] = nil
|
__sorted_includes[query] = nil
|
||||||
|
|
||||||
|
if __sorted_excludes[query] then
|
||||||
|
__insert_major_query(query)
|
||||||
__update_query_chunks(query)
|
__update_query_chunks(query)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -7058,12 +7061,15 @@ __evolved_set(__EXCLUDES, __ON_SET, function(query, _, exclude_list)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
__evolved_set(__EXCLUDES, __ON_REMOVE, function(query)
|
__evolved_set(__EXCLUDES, __ON_REMOVE, function(query)
|
||||||
if not __sorted_includes[query] then
|
|
||||||
__remove_major_query(query)
|
__remove_major_query(query)
|
||||||
end
|
|
||||||
|
|
||||||
|
__query_chunks[query] = nil
|
||||||
__sorted_excludes[query] = nil
|
__sorted_excludes[query] = nil
|
||||||
|
|
||||||
|
if __sorted_includes[query] then
|
||||||
|
__insert_major_query(query)
|
||||||
__update_query_chunks(query)
|
__update_query_chunks(query)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user