mirror of https://github.com/pixelfed/pixelfed
Add DB fallback, cache TTL, and configurable dropoffs for all timelines
Improvements to all three timeline services (Home, Public, Network):
1. DB fallback on cache exhaustion:
- Add fallbackMaxId() to each service that queries the DB when
Redis returns empty during max_id pagination
- Users can now scroll infinitely regardless of cache size
2. Cache TTL (24 hours):
- All sorted sets now expire after 24h, triggering a fresh rebuild
- Prevents stale data from accumulating
- Configurable via PF_HOME_TIMELINE_CACHE_TTL,
INSTANCE_PUBLIC_TIMELINE_CACHE_TTL, INSTANCE_NETWORK_TIMELINE_CACHE_TTL
3. Configurable dropoff limits:
- Home: 400 -> 800 (per user, via PF_HOME_TIMELINE_CACHE_DROPOFF)
- Public: 400 -> 10000 (via INSTANCE_PUBLIC_TIMELINE_CACHE_DROPOFF)
- Network: already 10000
4. Increased get() cap from 100 to 500 in all services
pull/6586/head
parent
b08da33a3c
commit
8d156bda1a
Loading…
Reference in New Issue