Content deleted Content added
make sure we arent the cause of lag due to concat stacking |
? |
||
Line 23:
mw.log("Aidan9382 | Unable to load Benchmarker (unexpected arg setup)")
end
end
function p.DebugPage(frame) -- Used from template invocation to do a page-wide analysis
if rawget(_G, "_DoingPageDebug") == true then
mw.log("Preventing recursion loop in DebugPage logic")
return
end
local page = frame.args[1]
local content = mw.title.new(page).content
local Hook = require("Module:Sandbox/Aidan9382/Benchmarker")
Hook(function()
mw.log("Performing DebugPage on " .. page)
frame:preprocess(content)
end, "DebugPage")() -- Hacky way to get the logic to work
return "DebugPage complete"
end
|