toan created this task.
toan added a project: Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  While looking into some formatterCache things I noticed this.
  
  Creating a module like such
  
    local p = {} --p stands for package
    
    function p.hello( frame )
        return mw.wikibase.getLabelByLang('Q28', 'en')
    end
    
    return p
  
  And using it on a page like this on a client
  
    {{#invoke:LuaTest|hello}}
  
  These values fetched never end up in or look at the formatterCache, which 
they probably should.
  
  Using methods without the language we start using the cache.
  
    return mw.wikibase.getLabel('Q28')

TASK DETAIL
  https://phabricator.wikimedia.org/T263999

WORKBOARD
  https://phabricator.wikimedia.org/project/board/71/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: toan
Cc: toan, Aklapper, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to