Author: Nx.devnull
Description:
run addmodules only once
Liquidthreads calls EditPage::getEditToolbar a lot of times (once for each comment, if I'm not mistaken), each time WikiEditorHooks::addModules runs, and the result is a huge number of calls to wfMsgReal (over 20000 with a decent sized lqt talk page), and a drastic increase in page load times. The page will also contain all the messages multiple times, increasing its size. I've attached a patch to only run addModules once - I'm not sure this is the correct way to fix the problem, but addModules shouldn't be adding the same messages over and over again if it gets called multiple times.
Version: unspecified
Severity: enhancement
Attached: