Skip to content

宝塔缓存问题 #299

Nov 30, 2024 · 8 comments · 1 reply
Discussion options

You must be logged in to vote

我根据你这两个现象,我猜你是不是开宝塔强制缓存了。
不要开缓存,内部就有redis设计,nginx开缓存会把之前的接口也缓存了,因为不是cookie存储token (用jwt+localstorage),因此不在http中传递, 宝塔的nginx缓存配置没法识别请求是哪个用户的, 不要乱配置缓存。

解决方案:关闭缓存

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Brave963
Comment options

Answer selected by Brave963
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #294 on December 02, 2024 02:18.