[Openstreetmap] tile cacheing

SteveC steve at asklater.com
Thu Oct 20 11:04:24 BST 2005


I was thinking of the opposite. We use squid for caching and there are
some fairly powerful tools for removing things from the cache, so a cron
job could wake up every ten minutes and look for whats changed in the
database and kill the tiles in the cache that contain those changes.

First I want to replace mapserver and speed up tile generation and only
render streets if the zoom level is sufficient...

* @ 20/10/05 10:10:34 AM simon at zymurgy.org wrote:
> Here's a thought:
> 
> if, as Steve said, the tiles are cached on the tile server for 48 hours, 
> then that means that even parts of the world that haven't changed still 
> end up with their cached tiles invalidated, and all the processing 
> required to re-generate them (and harassing the landsat server) happens 
> again.
> 
> It's clear within the database what parts of the planet have had new 
> line segments or nodes on them since they were generated, so rather than 
> just having a simple http cache expiry, when it does expire, it could go 
> off to the database and look to see if there's any alteration to the 
> bounding box covered by the tile since it was last generated. If so, it 
> would keep the same image cached for a futher 48 hours, or whatever. In 
> fact, if the database check is lightweight enough, the expiry time could 
> be a several minutes, rather than hours/days.
> 
> I'm not sure that the current API supports this (has anything in this 
> bounding box changed since time T) query, but it could be of huge benefit.
> 
> -- 
> Simon Hewison
> 
> _______________________________________________
> Openstreetmap mailing list
> Openstreetmap at vr.ucl.ac.uk
> http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the talk mailing list