yarl / vicuna

Tool for uploading files to Wikimedia Commons and other Wikimedia projects
http://yarl.github.io/vicuna/
43 stars 23 forks source link

Option to disable getCurrentDatabaseLag check? #40

Closed nicolas-raoul closed 9 years ago

nicolas-raoul commented 9 years ago

Thanks for this great software!

I use it over a costly mobile connection. It usually takes me days to categorize all of my pictures (a bit every evening). I noticed that Vicuna sends requests all day long, even before I log in.
It makes me worry for my mobile connection, and for the Wikimedia resources.

INFO: [commons.wikimedia.org] Current database replication lag is 0 seconds
Apr 30, 2015 5:25:59 PM Wiki getCurrentDatabaseLag
INFO: Fetching URL https://commons.wikimedia.org/w/api.php?maxlag=5&format=xml&action=query&meta=siteinfo&siprop=dbrepllag

Is there any way to disable this ping? Thanks!

yarl commented 9 years ago

Yes, good point.

saper commented 9 years ago

I have implemented this feature in https://github.com/yarl/vicuna/pull/41. Feel free to test!

nicolas-raoul commented 9 years ago

Wonderful, thanks! :-D