mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The /api/roms filter_values dict is cached in Redis keyed only by a runtime data-version that survives app upgrades. When a filter field is added (e.g. tags), entries written by the previous version lack the new key, so the response fails validation (filter_values.tags "Field required") and returns 500 until the entry's 7-day TTL elapses or a scan invalidates it. Embed a schema version in the cache key so reads after an upgrade ignore entries written under the old shape and recompute instead. Pre-namespace keys are bypassed for free by the changed key format. Bump ROM_FILTERS_CACHE_SCHEMA_VERSION whenever the cached dict gains or loses a field. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>