infostreams / mbtiles-php

PHP backend for reading tiles from mbtiles databases
MIT License
125 stars 34 forks source link

allow serving static files from the tiles/ directory #3

Closed Fil closed 11 years ago

Fil commented 11 years ago

if static files (and sub-directories) are present, don't route through tileserver.php this allows:

  1. to switch from a static tree to an .mbtiles, and back, without changing URLs
  2. to roughly build a cache for (a subset of) the tiles
infostreams commented 11 years ago

Thanks! Just merged it.

I'm curious though - you mention that you are building a cache for a (sub)set of the tiles. Did you actually implement that, and if so, did you do some performance testing? I would be curious for the results.

Fil commented 11 years ago

No implementation — I am testing strategies. But I think the best for caching is just to use a reverse-proxy (such as Varnish).

Fil commented 10 years ago

Just saw commit a9c86f16 ; apologies for the mix-up.