Developer disables tile cache entirely after finding no invalidation hook in Martin server
A developer running Martin, a Rust-based vector tile server, discovered that its in-memory tile cache has no mechanism to detect or respond to changes in underlying PostGIS data. The system serves a road-inventory database of 2.7 million features across roughly a hundred layers, where users actively edit geometries and expect near-instant map updates. After a user reported a geometry still appearing incorrect post-edit, the developer confirmed the database and layer views reflected the change correctly, but the cached tile remained byte-identical until the container was restarted. A config option called reload_interval, which appeared to offer a solution, turned out only to rediscover the table catalog and had no effect on cached tiles. With no TTL or invalidation hook available, the developer resolved the issue by setting cache_size_mb to zero, deliberately disabling the cache entirely to ensure data accuracy over performance.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in