<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,<br>
</p>
<p><br>
</p>
<p>Try saving your cache in a database -> e.g. sqlite
(<a class="moz-txt-link-freetext" href="https://mapproxy.org/docs/1.13.0/caches.html#sqlite">https://mapproxy.org/docs/1.13.0/caches.html#sqlite</a>) instead of a
file based cache. That should speed up cache cleanup.</p>
<p><br>
</p>
<p>Greetings,</p>
<p>Johannes</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 31.03.21 um 15:27 schrieb Nuno
Silva:<br>
</div>
<blockquote type="cite"
cite="mid:CAJj3HzCBE2eEiLhXM3A0V42Aq1aSviiy4MdkW7id_PmOcJYfqQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div><br>
</div>
Hi everybody.
<div><br>
</div>
<div>I'm using Mapproxy to create a cache of a WMS layer on a
production server to prevent direct access from the users to
this server, I used in the past MapCache, but problems related
to GetFeatureInfo and GetLegendGraphic with some WMS Servers
made me try this alternative.</div>
<div><br>
</div>
<div>The problem:</div>
<div><br>
</div>
<div>I have a layer that is generated every 3-4h using as source
a netcdf file...the backend server has to read that netcdf
file, with high cost of processing the file, with the cache
between the client and the server, only the first requests
would take longer, but when I'm using the mapproxy-seed
utility to do a cache cleanup, assuming that the user could
use all 18 levels of that layer, is taking now 4h to complete
25% cleaning of the cache....making this process take about
16h to achieve 100% (again, I have new information being
created every 3-4h)</div>
<div><br>
</div>
<div>Is there a way to achieve fast cache cleaning? I'll already
set <b>remove_all: true </b>, but even so it takes toooooo
long even without folder timestamp compare...</div>
<div><br>
</div>
<div>I'm considering making a manual removal of the folder with
rm -fR /cache_folder/* and the seeding for <b>to: 5</b> just
to fill the initial cache with some data.</div>
<div><br>
</div>
<div>Any suggestions/alternatives would be appreciated , thanks
in advance!</div>
<div><br>
</div>
<div><br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Kind regards,<br>
nsilva</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapProxy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapproxy">https://lists.osgeo.org/mailman/listinfo/mapproxy</a>
</pre>
</blockquote>
</body>
</html>