criticalmaps / criticalmaps-ios

Critical Maps iOS App 🚲✊
http://www.criticalmaps.net
MIT License
281 stars 40 forks source link

Set lower frequency for getting data from server #478

Closed stephanlindauer closed 1 year ago

stephanlindauer commented 1 year ago

I set the /locations-cache TTL to 60 seconds so pulling more often doesn't really give any benefit anymore. Not sure if this effects the frequency of pulling messages as well. If it does, please only pull that endpoint when the view is open (through a refresh button for example and at an interval that is paused once view is closed).