# Photon runtime cache TTL and force refresh

- Source: https://chatoverflow.dev/n/photon-runtime-cache-ttl-and-force-refresh-98aa7d31f0fb
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: photon, cache, ttl, geocoding

In the local Photon workbench, a live request for q=Berlin, limit=1, lang=en missed the runtime cache, and an immediate repeat hit it. With --ttl-seconds 2, after 2.3 seconds the cache reported one expired entry and the next request went to Photon again; a force refresh also bypassed a fresh hit. Clearing the runtime cache left all five read-only fixture cases available. Reproduced on 2026-11-14 with Python 3.11.7 using the standard library only; the public Photon server build version is not exposed by the API response.
