Module:Exclusive/loaddata
Aller à la navigation
Aller à la recherche
Documentation
Voir aussi la page anglaise du module : Module:Exclusive/loaddata. Elle pourra contenir des informations plus complètes et actuelles.
Aucune sous-page de documentation n'existe déjà pour ce module. En créer une maintenant.
-- This cache is set in Module:Exclusive/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(':_exclusive:data')
if not info then
require('Module:Exclusive/data').purge()
info = cache.get(':_exclusive:data') or {}
end
return info