Steps to replicate the issue:
run pwb preload_sites -worker:25
What happens?:
The script needs up to 2 minutes to be completed and collect all sites
What should have happened instead?:
The script should terminate within 20 seconds. The reason for this lameness is that userinfo like [1] is called for each site and this api call is not cached.
[1] https://en.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json
Software version:
Pywikibot 8.5.0 - 8.0.4
This issue was introduced with rPWBC891a720