mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
图片缓存不过期
This commit is contained in:
@@ -121,7 +121,7 @@ func ServeUpload(c *gin.Context, upload *model.Upload) {
|
||||
return
|
||||
}
|
||||
|
||||
if err := cache.Set(cacheKey, webpBytes, 0); err != nil {
|
||||
if err := cache.Set(cacheKey, webpBytes, diskcache.NoExpiration); err != nil {
|
||||
logger.WarnF(c.Request.Context(), "failed to cache compressed image: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user