summaryrefslogtreecommitdiff
path: root/internal/web/etag.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/etag.go')
-rw-r--r--internal/web/etag.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/web/etag.go b/internal/web/etag.go
index 37c1cb423..4fe3f7cac 100644
--- a/internal/web/etag.go
+++ b/internal/web/etag.go
@@ -27,11 +27,11 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/log"
- "codeberg.org/gruf/go-cache/v2"
+ "codeberg.org/gruf/go-cache/v3"
)
func newETagCache() cache.Cache[string, eTagCacheEntry] {
- eTagCache := cache.New[string, eTagCacheEntry]()
+ eTagCache := cache.New[string, eTagCacheEntry](0, 1000, 0)
eTagCache.SetTTL(time.Hour, false)
if !eTagCache.Start(time.Minute) {
log.Panic("could not start eTagCache")