Ah, thanks Thomas!
I did not catch that from the documentation.
I also needed to add layout like this:
<cache name="disk" type="disk" layout="template">
<template>/mapcache/{tileset}/{grid}/{dim:time}/{z}/{x}/{y}.{ext}</template>
</cache>
to make it work ( both from testing and looking at the documentation)
If you use the default this will be like tilecache as far as I
understand.
Do you have any idea what will be the fastest? To use default like:
<cache name="disk2" type="disk">
<base>/mapcache</base>
</cache>
or the solution above with template? ( As a lot of 000 directories will
be created with the base one)
Trygve
Den 2022-02-09 12:24, skrev thomas bonfort:
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
<try...@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users