Skip to content

add D1 subscription cache for time-limited links#350

Open
DrayChou wants to merge 1 commit into7Sageer:mainfrom
DrayChou:feat/v2-cache-migration
Open

add D1 subscription cache for time-limited links#350
DrayChou wants to merge 1 commit into7Sageer:mainfrom
DrayChou:feat/v2-cache-migration

Conversation

@DrayChou
Copy link
Copy Markdown

  • Title: feat: add D1 subscription cache for time-limited links
  • Description:
    • 添加基于 D1 的订阅内容持久化缓存
    • 实现 9 个 User-Agent 轮换的重试机制
    • 缓存策略:远程优先 → 成功更新缓存 → 失败回退缓存
    • 解决时间限制订阅链接(如 10 分钟过期、一次性使用)失效问题

- Add SubscriptionCacheService with retry + UA rotation
- Integrate cache into BaseConfigBuilder and all builders
- Add /cache-stats and /cache-clear routes
- Update wrangler.toml with D1 binding
- Fix cache=false param parsing
- Revert to 32-bit hash for backward compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 16, 2026

Someone is attempting to deploy a commit to the 7sageer's projects Team on Vercel.

A member of the Team first needs to authorize it.

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