[mapserver-users] Mapcache disk cache gives unexpected paths to tiles

Trygve Aspenes trygve at aspenes.priv.no
Wed Feb 9 03:09:53 PST 2022


Hi

I have a mapcache running using disk as cache method with config like 
this:

     <cache name="disk" type="disk">
         <base>/mapcache</base>
         
<template>/mapcache/{tileset}#{grid}#{dim}/{z}/{x}/{y}.{ext}</template>
     </cache>

But here is what I get on disk:

/mapcache/<my tileset 
name>/EPSG:3857/2022-02-05T00:12:00Z/05/000/000/038/000/000/043.png

What I don't understand is below the zoom level (here 05) I get 000 
followed by 000. Then the y followed by another double 000 before I get 
the x with my extension.

Where does all these 000 sub directories comes from and what functions 
do they have?

I don't think this affects the performance, but this must cause creating 
thousands and thousands of unnecessary sub directories?

Thanks.

Trygve



More information about the MapServer-users mailing list