缩短内存缓存索引缓存保留时间

This commit is contained in:
刘祥超
2023-10-09 07:49:21 +08:00
parent 149e04d0e4
commit 38a214878a

View File

@@ -544,7 +544,7 @@ func (this *FileList) UpgradeV3(oldDir string, brokenOnError bool) error {
}
func (this *FileList) maxExpiresAtForMemoryCache(expiresAt int64) int64 {
var maxTimestamp = fasttime.Now().Unix() + 86400*3
var maxTimestamp = fasttime.Now().Unix() + 7200
if expiresAt > maxTimestamp {
return maxTimestamp
}