Skip to content

Show Trakt and MDBList list edits within 30 minutes - #801

Merged
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
silentbil:fix/list-catalog-freshness
Oct 10, 2026
Merged

ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
silentbil:fix/list-catalog-freshness

Conversation

@silentbil

Copy link
Copy Markdown
Collaborator

Why

Edits to a Trakt or MDBList list took up to a day to show up in its home row. Trakt serves list items with cache-control: max-age=86400, and MDBList's servers keep handing out a list's /json for about a day, so the shared OkHttp disk cache answered the row from a stale copy (0 ms responses in the log, no request to the service at all).

What changed

  • List requests carry a marker (_=<window>) that changes every 30 minutes. A new marker is a new address, so neither the app's HTTP cache nor the services' own caches can answer it with an older copy; loads within one window still share a single cached response.
  • Applied to Trakt list rows (users/{user}/lists/{id}/items and lists/{id}/items), MDBList list rows, and MDBList sources inside collections.
  • Worst case for an edit to appear is ~30 minutes, at the next home load.

Testing

  • New ListFreshnessTest: window boundaries, URL building, and that Trakt and MDBList rows really send the marker; existing catalog and collection loading tests pass.
  • Manually on an Android TV emulator: a Trakt list row and an MDBList list row that were stuck on day-old contents updated right after installing; the log shows real network requests with the marker.

Trakt serves list items with max-age=86400 and MDBList's servers keep
handing out a list's JSON for about a day, so the shared HTTP disk cache
answered list rows from a copy up to a day old and user edits did not
appear.

List requests now carry a marker that changes every 30 minutes. A new
marker is a new address, so neither the app's cache nor the services'
own caches can answer it with an older copy, while loads within one
window still share a single cached response. Applies to Trakt list rows,
MDBList list rows and MDBList sources inside collections.
@github-actions github-actions Bot added the area: android Changes to the Android app or Gradle build label Oct 10, 2026
@silentbil
silentbil requested a review from ProdigyV21 October 10, 2026 18:32
@ProdigyV21
ProdigyV21 merged commit 319eeda into ProdigyV21:main Oct 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: android Changes to the Android app or Gradle build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants