Module:Mw.ext.LuaCache: Difference between revisions

Created page with "local LuaCache = {} local php -- Use binser to serialize Lua values for the cache -- Note that attempting to serialize a function will raise because loadstring -- and dump are disabled. local binser = require 'binser' -- This function is called by Scribunto to load the module function LuaCache.setupInterface() -- Clear setupInterface so this isn't loaded twice LuaCache.setupInterface = nil -- Store the mw_interface global php = mw_interface mw_interface = nil --..."
 
mNo edit summary
 
Line 5: Line 5:
-- Note that attempting to serialize a function will raise because loadstring
-- Note that attempting to serialize a function will raise because loadstring
-- and dump are disabled.
-- and dump are disabled.
local binser = require 'binser'
local binser = require('module:binser')


-- This function is called by Scribunto to load the module
-- This function is called by Scribunto to load the module