-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 缓存问题 #253
Comments
看起来应该是 Cloudflare worker 复用的问题,通常半个小时后应该就会恢复正常 |
好的,我重新部署再观察一下,谢谢回复 |
感觉把这里 Line 34 in d0eeaf0
改成 const response = await fetch(new Request(`${this.cacheUrl}?_t=${new Date().getTime()}`)) 也许能缓解。 |
你的文章是不是设置了别名?在设置了别名且通过别名访问文章的情况下,能复现缓存错乱 Rin/server/src/services/feed.ts Lines 477 to 487 in d0eeaf0
@OXeu 这里的逻辑有点没看懂,仅当别名更改时才清除别名的缓存吗? |
看起来确实是个判断的 bug |
有点疑惑 |
单个 worker 短期内是会处理多个请求的,并不是每个请求都创建一个新的 |
编辑文章后,D1数据库中feed数据是正确的,但是文章展示是旧的,在设置中多次清除缓存依然是旧的,Ctrl f5依然是旧的,多次刷新会出现新旧交替的情况,没有固定规律
The text was updated successfully, but these errors were encountered: