M4rtinK / modrana

ModRana is a flexible GPS navigation system for mobile devices. This is the main upstream modRana source code repository - waiting for your pull requests & patches! :)
www.modrana.org
GNU General Public License v3.0
66 stars 21 forks source link

Set a timeout for caching of tiles rendered by OSM Scout Server #195

Open M4rtinK opened 7 years ago

M4rtinK commented 7 years ago

OSM Scout Server is now pretty robust and even contains automatic map data download & updates.

So it doesn't make sense anymore to store rendered tiles in the cache indefinitely - OSM Scout Server can easily & quickly re-render them. The map data for OSM Scout Server should also be updated rather often, so storing tiles indefinitely also means that they won't ever be re-rendered based on the updated data packs.

So let's set a timeout for how long should OSM Scout Server rendered tiles be considered valid by modRana before it requests them again. I guess 24 hours seems about right ?