[mapserver-users] Mapserver caching and /vsicurl/

Even Rouault even.rouault at spatialys.com
Wed Apr 19 11:04:33 PDT 2017


> Can anyone shed some light on this? How can I update imagery in s3 served
> via Postgis tile index pointing to /vsicurl/ paths without restarting
> mapserver?

You can't with the actual state of code in GDAL. This is purely a GDAL 
behaviour. Currently GDAL has a global 16 MB cache for all /vsicurl/ URLs: 1000 
blocks of 16 KB each, with a least recently used eviction strategy. So yes it 
assumes static content.
With some extra code we could imagine to evict with an option the blocks for a 
/vsicurl/ URL when the file descriptor is closed for example.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170419/72979d49/attachment.htm>


More information about the MapServer-users mailing list