You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-11-24 16:36:49

jaglu
Member
Registered: 2015-06-23
Posts: 9

How to prevent tile expiration with mod_tile?

Hi all,
I've my own tile server (mod_tile + renderd).
It's a single country instance so I can cache pretty much all the tiles on my hard drive.
Problem is: mod_tile keeps asking renderd to render tiles despite they have been generated & cached like a day or two before.
I do not plan to update Postgres GIS database in the near future.
I'd like to force mod_tile to use cached tiles.
How this can be done?
mefiu

Offline

#2 2015-12-01 04:23:56

Harry Wood
Member
From: London UK
Registered: 2007-05-29
Posts: 147
Website

Re: How to prevent tile expiration with mod_tile?

Do you have a file called `/var/lib/mod_tile/planet-import-complete` ?  If not, try creating this file. mod_tile looks at the timestamp on that file (which is supposed to indicate when you last populated your PostGIS db with new data).  I think if that timestamp is found and is unchanging, then it should decide not to re-render tiles.

See also: Question: Why are the cache duration settings configured in mod_tile being ignored?

Offline

#3 2015-12-01 23:15:32

poempelfox_forum
Member
Registered: 2014-12-20
Posts: 64

Re: How to prevent tile expiration with mod_tile?

Just set

ModTileBulkMode On

in your apache/mod_tile configuration. No need to mess with timestamps you don't care about.

Offline

#4 2020-08-19 09:14:54

Yulisar Abdulwahab
New Member
Registered: 2020-08-19
Posts: 1

Re: How to prevent tile expiration with mod_tile?

It works for me. Now it is not rendering any tiles that already exist.

Offline

Board footer

Powered by FluxBB