Skip to content

Fix stale popular apps with 24h cache TTL#12

Merged
gavdevs merged 1 commit intomainfrom
fix/popular-apps-cache-ttl
Mar 20, 2026
Merged

Fix stale popular apps with 24h cache TTL#12
gavdevs merged 1 commit intomainfrom
fix/popular-apps-cache-ttl

Conversation

@gavdevs
Copy link
Copy Markdown
Member

@gavdevs gavdevs commented Mar 20, 2026

Summary

  • Add optional TTL parameter to kvCached helper
  • Set 24h expiration on the popular apps KV cache so download rankings refresh daily
  • Reduce edge cache for listing pages (homepage, apps, alternatives, discover, desktop) from 1 week to 1 day

Context

The popular apps section was frozen because both the KV cache (no TTL) and edge cache (1 week) were serving stale data indefinitely. Download counts have grown significantly but the homepage wasn't reflecting it.

Test plan

  • Deploy and verify popular apps section updates within 24h
  • Confirm other pages still cache correctly (detail pages at 1 week, search at no-store)

Popular apps section was serving stale data because the KV cache
had no expiration and the edge cache was set to 1 week. Now both
layers expire after 24 hours so download rankings stay fresh.
@gavdevs gavdevs merged commit b511930 into main Mar 20, 2026
1 of 2 checks passed
gavdevs added a commit that referenced this pull request Apr 5, 2026
Fix stale popular apps with 24h cache TTL
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.

1 participant