Hi,
While working with Tegola’s caching, I noticed that TTL configuration is currently only supported for the Redis cache backend, but not for the file cache.
When using the file cache, cached tiles persist indefinitely unless:
- the Tegola pod is restarted, or
- tiles are manually invalidated
This becomes problematic when underlying data changes infrequently but does change occasionally, those updates effectively never bust the cache in a running system.
I initially assumed I had missed an undocumented ttl parameter for the file cache, but after checking the docs and code, this doesn’t seem to exist.
Current behavior
- Redis cache supports TTL via backend configuration.
- File cache has no TTL or automatic expiration.
- Cache invalidation for file cache requires manual intervention.
Expected / Desired behavior
Support an optional TTL for the file cache backend, similar in spirit to Redis, but implemented internally by Tegola.
Hi,
While working with Tegola’s caching, I noticed that TTL configuration is currently only supported for the Redis cache backend, but not for the file cache.
When using the file cache, cached tiles persist indefinitely unless:
This becomes problematic when underlying data changes infrequently but does change occasionally, those updates effectively never bust the cache in a running system.
I initially assumed I had missed an undocumented ttl parameter for the file cache, but after checking the docs and code, this doesn’t seem to exist.
Current behavior
Expected / Desired behavior
Support an optional TTL for the file cache backend, similar in spirit to Redis, but implemented internally by Tegola.