mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
Simplify pass over the sidecar invalidation change: - Split the per-user version into sort (sidecar:user_ver) and sibling (sidecar:user_sib_ver) counters so an is_main_sibling toggle only refreshes grouped-gallery entries, not every sorted index. - Queue cache bumps in session.info and flush them once from a one-shot after_commit listener, deduped per user, instead of bumping inline (and possibly repeatedly) before the write is durable. - Give unscoped filter values their own cache key builder instead of overloading the sidecar key with kwargs. - Normalize order_by/order_dir casing once at the top of get_roms and hoist the single sidecar cache key shared by the char and id indexes. - Rework TestRomUserCacheVersion delta-style; the add-bump test now seeds its own bare rom since the rom fixture pre-pairs admin_user. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L