Skip to content

Restore explicit cache warming and resource invalidation - #1182

Open
jasonhedman wants to merge 7 commits into
json/native-cache-databasefrom
json/native-cache-cleanup
Open

jasonhedman wants to merge 7 commits into
json/native-cache-databasefrom
json/native-cache-cleanup

Conversation

@jasonhedman

@jasonhedman jasonhedman commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Completes query-cache cleanup with explicit Redis warming and registration invalidation. The cron refreshes its configured public queries and waits for a new publication; failed publications fail the task so retries can run. Ordinary readers may continue using the unexpired previous value during a refresh.

Resource registration rotates the shared resources generation and revalidates the server page. Older in-flight queries can only publish into their old generation. Warming context stays out of tRPC inputs and cache keys.

The external discovery catalog uses Next remote caching: failed/empty upstream refreshes preserve a successful catalog for up to 24 hours, and cold failures return an empty list. Redis owns database query results, probe sessions, and resumable chat streams. Removes the remaining old cache module and documents TTLs, isolation, lease behavior, and failure semantics in src/lib/cache/README.md.

Validation: pnpm check passes independently at this layer. The complete application stack passes its production build, preserving prerendered shells and component-level streaming.

@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
x402scan Ready Ready Preview Sep 25, 2026 4:18pm UTC

Request Review

@jasonhedman jasonhedman changed the title json/native cache cleanup Retire Redis query caching and invalidate native resource caches Sep 8, 2026
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from c070f33 to b2ec005 Compare September 8, 2026 20:34
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from b2ec005 to 311f333 Compare September 8, 2026 20:41
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from 311f333 to 7033155 Compare September 8, 2026 21:19
@jasonhedman
jasonhedman removed this pull request from stack #1183 September 9, 2026 14:39
@jasonhedman
jasonhedman added this pull request to stack #1128 September 9, 2026 14:40
@jasonhedman
jasonhedman marked this pull request as ready for review September 9, 2026 14:43
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from 7033155 to c1b00e8 Compare September 9, 2026 15:02
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from c1b00e8 to 7201f7d Compare September 9, 2026 15:11
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from 7201f7d to e2e4857 Compare September 9, 2026 15:13
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from e2e4857 to ed8f53a Compare September 9, 2026 19:14
@jasonhedman jasonhedman changed the title Retire Redis query caching and invalidate native resource caches Restore explicit cache warming and resource invalidation Sep 14, 2026
@jasonhedman
jasonhedman force-pushed the json/native-cache-cleanup branch from ed8f53a to cf77dfc Compare September 14, 2026 14:46

This branch was successfully deployed

1 active deployment
Preview — 9c283bdf Deployed Sep 25, 2026 by vercel[bot]
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