https://bugzilla.wikimedia.org/show_bug.cgi?id=43280
Web browser: ---
Bug ID: 43280
Summary: Cache shouldDisplayMobileView for duration of request
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: MobileFrontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
I don't think the results of shouldDisplayMobileView can change during a
request. It would be helpful if it were cached/memoized so other extensions
could call it without performance concerns.
This basically just means that before returning, it stores the result in the
instance (which is supposed to be used as a singleton), and uses it when called
(if available).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l