[MapProxy] Cleanup old tiles

Oliver Tonnhofer olt at omniscale.de
Wed Sep 9 04:27:08 PDT 2015


Hi,


SQLite does not "release memory” if you remove records, but it will re-use the space. 
See https://sqlite.org/lang_vacuum.html but be aware that your cache in unavailable during VACUUM.


Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com




> On 02.09.2015, at 17:13, Petróczki Imre <petroczkiimre at gmail.com> wrote:
> 
> Hi all,
> 
> I have a cache and i want to cleanup old tiles. My cleanup task is:
> cleanups: 
>    15_cleanup: 
>       caches: 
>       - 42_offline_cache
>       remove_before: 
>          minutes: 1
> 
> When i run the mapproxy-seed.exe --cleanup... command, it completes well, but the size of the cache directory remains the same. I tried the remove_all parameter. That worked. But the remove_before didn't. My cache uses sqlite.
> 
> In the documentation i read this: remove_before: "relative from the start time of the seed process". I hope this doesn't mean that i can only cleanup my cache if it was filled with mapproxy-seed. 
> 
> I attached a screenshot:
> 
>  <cleanup.PNG>
>> 
> 
> Thanks for help!
> 
> Imre Petróczki
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list