https://bugzilla.wikimedia.org/show_bug.cgi?id=58340
Web browser: ---
Bug ID: 58340
Summary: Cache JS config vars in parser output
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Currently, ViewEntityAction::show will call EntityView::registerJsConfigVars on
every page view, causing considerable database load. This is really redundant,
since the information generated there is already known when generating the
HTML.
It would be good to put the JS config data into the ParserOutput along with the
HTML, and then just transfer it to the OutputPage object (probably using a
hook).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l