[mapserver-users] MS4W Mapcache

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Wed Dec 18 05:05:44 PST 2013


> I want to create a cache in the structure /z/x/y.png but using a
> template
> for the cache type disk, it's impossible to restart Apache.
> 
>    <cache name="disktest" type="disk">
> 
> <template>C:/ms4w/tmp/ms_tmp/cache/{tileset}/{grid}/{z}/{x}/{y}.{ext}
> </templ
> ate>
>       <symlink_blank/>
>    </cache>

Have you tried adding a layout="template" attribute to the cache element?

<cache name="disktest" type="disk" layout="template">

> Also the cache type mbtiles doesen't work
> 
> 	<cache name="mbtiles" type="mbtiles">
> 	   <dbfile>C:/ms4w/tmp/ms_tmp/cache/test.mbtiles</dbfile>
> 	</cache>
>

Cache type mbtiles is bundled with the sqlite driver. So if one works the other will also do. Have you tried moving it out of the way and let mapcache create a fresh one?


More information about the mapserver-users mailing list