Module:Iteminfo/loaddata

-- This cache is set in Module:Iteminfo/data -- Problem: If a template that is being used by a large number of pages is changed, it will cause all of these page's cache to be invalidated and require regeneration. --			This may crash the wiki platform and cause the user to get a 5xx error. -- Solution: We use luacache to decouple the data template and the template which uses it. --			By doing this, changing a data template will not 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