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

thomas bonfort thomas.bonfort at gmail.com
Wed Feb 9 03:24:09 PST 2022


You should remove the <base>/mapcache</base> from the >cache> block, as it
takes precedence over your <template>

--
thomas

On Wed, Feb 9, 2022 at 12:10 PM Trygve Aspenes <trygve at aspenes.priv.no>
wrote:

> 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
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220209/5eac5c5a/attachment.html>


More information about the MapServer-users mailing list