mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-11 12:50:26 +08:00
优化缓存相关代码
This commit is contained in:
@@ -543,7 +543,7 @@ func (this *FileList) UpgradeV3(oldDir string, brokenOnError bool) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *FileList) maxExpiresAtForMemoryCache(expiresAt int64) int64 {
|
func (this *FileList) maxExpiresAtForMemoryCache(expiresAt int64) int64 {
|
||||||
var maxTimestamp = fasttime.Now().Unix() + 86400*7
|
var maxTimestamp = fasttime.Now().Unix() + 86400*3
|
||||||
if expiresAt > maxTimestamp {
|
if expiresAt > maxTimestamp {
|
||||||
return maxTimestamp
|
return maxTimestamp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user