Skip to content
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

腾讯云COS存储碰到的一些问题 #32

Open
JukieChen opened this issue Jun 2, 2023 · 3 comments
Open

腾讯云COS存储碰到的一些问题 #32

JukieChen opened this issue Jun 2, 2023 · 3 comments

Comments

@JukieChen
Copy link

图片刚上传时可以正常展示,但是在几天后就会随机有一些图片变白,并且这些图片在COS桶中是存在的。
image

@Zing22
Copy link
Collaborator

Zing22 commented Jun 2, 2023

应该是缓存的链接过期问题。先尝试清理缓存,如果清理后正常,就在cache.js里把缓存的时间缩短一些,参考:

// 缓存时长设置(单位默认为hours)
// TODO(zing): 缓存图片链接会导致cos签名过期
const cacheTime = {
  catAvatar: 0,  // 首页封面图
  catItem: 0,  // 猫猫信息
  commentCount: 2,  // 留言数量
  likeItem: 72,  // 点赞行为
  pageSetting: 0,  // 页面设置
  genealogyFCampus: 24*7*31,  // 首页校区过滤选项
  checkPhotoCampus: 24*7*31,  // 最后一次审核照片的校区
  genealogyNews: 0, // 首页的news弹窗
}

@JukieChen
Copy link
Author

清理缓存后仍然无法解决问题。

@Zing22
Copy link
Collaborator

Zing22 commented Jun 4, 2023

@JukieChen 加一下QQ群吧,956808218

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

No branches or pull requests

2 participants