mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-18 21:21:41 +00:00
Fix S3 backend cache expiry calculation.
This commit is contained in:
@@ -269,7 +269,7 @@ func defaultCacheConfig[K comparable, V any](
|
||||
options.Weigher = weigher
|
||||
}
|
||||
if maxAge != 0 {
|
||||
options.ExpiryCalculator = otter.ExpiryCreating[K, V](maxAge)
|
||||
options.ExpiryCalculator = otter.ExpiryWriting[K, V](maxAge)
|
||||
}
|
||||
return options, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user