Files
romm/backend/handler/recommendation/__init__.py
Sam Dornan 3543447469 fix(backend): drop cached feeds when the graph is rebuilt
Every cached ranking is computed against the edges that existed when it was
built, so the nightly rebuild left users reading the previous graph until
their cache expired. The same argument that moved per-user invalidation into
`update_rom_user` applies to the largest input of all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 19:50:22 -05:00

24 lines
519 B
Python

from .builder import BuildStats, SimilarityBuilder
from .diversity import MAX_PER_SERIES, cap_by_series
from .feed import (
FeedBuilder,
RecommendedRom,
get_cached_feed,
invalidate_all_cached_feeds,
invalidate_cached_feed,
set_cached_feed,
)
__all__ = [
"MAX_PER_SERIES",
"BuildStats",
"FeedBuilder",
"RecommendedRom",
"SimilarityBuilder",
"cap_by_series",
"get_cached_feed",
"invalidate_all_cached_feeds",
"invalidate_cached_feed",
"set_cached_feed",
]