local GlobalAddonName, E = ...
----------------------------------------------------------------
local function Collect_Garrison()
	----------------------------------------------------------------
	if not E.func_CanCollectData() then return end
	----------------------------------------------------------------
	local collectGARRISON = E.cm.GARRISON
	if not collectGARRISON then return end
	collectGARRISON.cacheSize = E.func_IsQuestFlaggedCompleted(37485) and 1000 or 500
end
local function Collect_lastCacheTime(...)
	local rt, rl, q, _4, _5, _6, source = ...
	local collectGARRISON = E.cm.GARRISON
	if not collectGARRISON then return end
	if rt == "currency" and source == 10 and rl:match("currency:824") then
		collectGARRISON.lastCacheTime = E.TIME_SERVER()
	end
end
----------------------------------------------------------------
function E.Collect_Garrison()
	E.func_SpamBlock(Collect_Garrison, true)
end
----------------------------------------------------------------
function E.Collect_lastCacheTime(...)
	local key = (""):join(tostringall(...))
	E.func_SpamBlock(Collect_lastCacheTime(...), true, ...)
end
----------------------------------------------------------------