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: wikibugs-l@lists.wikimedia.org
          Reporter: mflasc...@wikimedia.org
                CC: aricha...@wikimedia.org, mgro...@wikimedia.org,
                    prei...@wikimedia.org, tf...@wikimedia.org
    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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to