<div dir="ltr">Nicolas,<div style>This needs documenting, but you should be able to activate it with </div><div style><span style="font-family:monospace"><cache name="media" type="disk" layout="template"></span><br style="font-family:monospace">
<span style="font-family:monospace">  <template>/home/tppostgis/</span><span style="font-family:monospace">Bureau/mapcache/tiles/{</span><span style="font-family:monospace">tileset}_{grid}/{z}/{x}/{y}.</span><span style="font-family:monospace">png</template></span><br style="font-family:monospace">
<span style="font-family:monospace"></cache></span><br></div><div style><span style="font-family:monospace"><br></span></div><div style><span style="font-family:monospace">--</span></div><div style><span style="font-family:monospace">thomas</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 May 2013 16:19, nmoyroud <span dir="ltr"><<a href="mailto:nmoyroud@free.fr" target="_blank">nmoyroud@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
In mapcache when I use a template for my cache, and restart apache2 it<br>
doesn't work. I get the following message : "disk cache media has no base<br>
directory or template".<br>
Here is my mapcache.xml file :<br>
   <cache name="media" type="disk"><br>
<br>
<template>/home/tppostgis/Bureau/mapcache/tiles/{tileset}_{grid}/{z}/{x}/{y}.png</template><br>
   </cache><br>
When I change for <base> instead of <template> I have no error in apache2.<br>
But I really need to work with a template scheme.<br>
I copied the mapcache.xml from the official doc and these is still the same<br>
problem ! I bang my head against wall for hours without any success :-)<br>
Thanks for your help.<br>
<br>
Nicolas<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Unable-to-activate-cache-template-in-mapcache-tp5055805.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Unable-to-activate-cache-template-in-mapcache-tp5055805.html</a><br>

Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br></div>