Module:Cache/doc

This is where information and functions about caches is stored. See Module:VarsCacheMap for using the cache class used on the wiki.

While these caches can be used to solve a few different issues, the main one this is used to solve is large lua memory usage (by only having to load the data when setting up the cache), and to a lesser extent lua time usage (since often these data files also loop through data).

Refreshing cache
Cache can be manually refresh via MediaWiki:Gadget-refreshLuaCache.js.
 * Module:Inventory slot/Aliases: Refresh Aliases Cache
 * Module:Item/ApiData: Refresh Data Cache
 * Module:Item/ApiAliases: Refresh Aliases Cache
 * Module:Crafting/Aliases: Refresh Aliases Cache
 * Module:Minion/Data: Refresh Data Cache