Skip to content

Prevent stale tracker responses after deletion - #303

Merged
ALeonard9 merged 1 commit into
mainfrom
feat/297-delete-cache-invalidation
Aug 5, 2026
Merged

Prevent stale tracker responses after deletion#303
ALeonard9 merged 1 commit into
mainfrom
feat/297-delete-cache-invalidation

Conversation

@ALeonard9

Copy link
Copy Markdown
Owner

Summary

  • mark viewer- and tracker-specific reads as private, no-store
  • cover public profiles, user rankings, global search, and per-domain catalog search through one central policy
  • prevent browsers, CDNs, and framework data caches from retaining mutable responses under URL-only keys
  • add deletion consistency coverage for movies, TV, books, and games

Architecture note

The API has no Redis/profile cache or search index to evict: these endpoints query live SQL. The stale-data risk was HTTP response caching, so this removes the cache layer instead of introducing invalidation key bookkeeping.

Validation

  • 785 tests passed
  • black passed
  • pylint passed at 10.00/10
  • commit and changed-test pre-push hooks passed
  • live dev API returned Cache-Control: private, no-store for /v1/public/*
  • regression tests verify rank -> public/rankings GET -> delete -> immediate GET for all four domains

Closes #297

@ALeonard9
ALeonard9 merged commit bab5567 into main Aug 5, 2026
9 checks passed
@ALeonard9
ALeonard9 deleted the feat/297-delete-cache-invalidation branch August 5, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix stale cache invalidation when items are deleted from rankings

1 participant