Modul:Iteminfo/loaddata

Aus Terraria Wiki
Zur Navigation springen Zur Suche springen
Siehe auch die englische Modulseite: Module:Iteminfo/loaddata. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.

Für dieses Modul gibt es noch keine Dokumentations-Unterseite. Erstelle jetzt eine.


-- This cache is set in Module:Iteminfo/data
-- Note: 
-- If a template that's being used by large number of page changed, it will causing all of these page's cache to be invalidated and requires regeneration.
-- This may crash wiki platform and cause visitor get 5xx error. So we use luacache to decouple data template and template which uses it.
-- By doing this, editing on data template won't cause massive pages to be regenerated.
local cache = require 'mw.ext.LuaCache'
info = cache.get(':_iteminfo:data')
if not info then
	require('Module:Iteminfo/data').purge()
	info = cache.get(':_iteminfo:data') or {}
end
return info