How to clear osm tile cache on my own server

I am currently working on a map project based on OpenStreetMap using Mapnik, renderd and mod_tile (e.g. osm on my site). On my personal computer (Ubuntu 12.04), I built an osm tile server, following some tutorials. It works well, and I loaded a lot of regions of one country (and not the whole planet, just a part of the planet).

I realized that mod_tile uses a cache for each processed fragment, so I decided to explore how I can clear this one . The only solution I found so far was to use a binary file render_expired, but I don’t understand how I can set all the tiles to expire in this way (moreover, without diff files) ... I tried to find where these images, but I can’t find them.

I need help, so if anyone has an idea ...

+5
source share
2 answers

Just delete the one mentioned /var/lib/mod_tile/default(using rm -rfif you dare) and restart the renderd daemon.

+13
source

Run this:

sudo rm -rf /var/lib/mod_tile/ajt
sudo service renderd restart

ajt - , .

ajt ( ):

sudo mkdir /var/lib/mod_tile/ajt
sudo chown renderaccount /var/lib/mod_tile/ajt
+2

All Articles