Skip to content

Split GitHub cache and harden rate limiting#54

Merged
stylessh merged 2 commits intomainfrom
stylessh/perf-cache-audit
Apr 10, 2026
Merged

Split GitHub cache and harden rate limiting#54
stylessh merged 2 commits intomainfrom
stylessh/perf-cache-audit

Conversation

@stylessh
Copy link
Copy Markdown
Owner

@stylessh stylessh commented Apr 10, 2026

This switches key GitHub-backed reads to a split cache model with D1 namespace/version state and KV-backed payload storage, including the migration and Wrangler binding for GITHUB_CACHE_KV. It expands split-cache coverage across viewer, repo lists, pull and issue detail/activity data, and repo metadata like collaborators, teams, and labels, while webhook and mutation paths now bump namespace versions for invalidation. It also hardens GitHub API usage by adding stale-if-rate-limited cache behavior, adaptive freshness under low quota, and an Octokit throttle/retry policy that retries safe reads but avoids replaying writes. On the client side, it preserves the latest render-performance work from main while removing the 15s PR status polling loop so status refreshes rely on focus and the newer component boundaries instead of a constant interval.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
diffkit 6165847 Commit Preview URL

Branch Preview URL
Apr 10 2026, 07:52 PM

@stylessh stylessh merged commit ff1ee09 into main Apr 10, 2026
4 checks passed
stylessh added a commit that referenced this pull request Apr 18, 2026
* Split GitHub cache and harden rate limits

* Document GitHub cache architecture
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