mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
The rom_id_index/char_index sidecars are memoised under keys whose version only hidden writes bump, so a gallery sorted by a per-user column kept serving the pre-write order for up to seven days after a play, a rating, or a status change. update_rom_user now bumps a per-user version counter, and the unscoped sidecar cache key embeds it whenever the sort resolves to a rom_user column, so every writer (the props endpoint, save and state uploads, play sessions, the RetroAchievements sync) invalidates exactly that user's per-user-sorted entries. Name and metadata sorts keep their shared keys, the global hidden bump is untouched, and superseded per-user entries age out by TTL instead of needing keys-set bookkeeping. Fixes #4448 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L