Skip to content

Feature Request: Add TTL support to file cache backend #1068

Description

@Edefritz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions