Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  `Site.siteinfo.get()` parameter `expiry` may be either an `int` of `float` or 
`bool`ean type.
  
  If `expiry` is an `int` or `float`, the `Siteinfo.get()` method checks 
whether the cache is expired for that given days (a `float` value enables 
factional days). An `expiry` of `0` or `0.0` means that expiry is always True 
and `Siteinfo` is loaded from API instead from cache. If `expiry` is `False` 
`Siteinfo` is always loaded from cache. But curiously if  If `expiry` is `True` 
the result is the same as for `False`:  `Siteinfo` is always loaded from cache.
  
  current behavior:
  -----------------
  
  `site.siteinfo.get('general', expiry=True)` loads siteinfo from cache
  
  expected behaviour:
  -------------------
  
  `site.siteinfo.get('general', expiry=True)` loads siteinfo from API

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

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

To: Xqt
Cc: Aklapper, Dalba, Xqt, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to