mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Use maintenance router to serve 503 while server is starting/migrating (#3705)
* [feature] Use maintenance router to serve 503 while server is starting/migrating * love you linter, kissies
This commit is contained in:
@@ -29,6 +29,10 @@ import (
|
||||
"codeberg.org/gruf/go-cache/v3"
|
||||
)
|
||||
|
||||
type withETagCache interface {
|
||||
ETagCache() cache.Cache[string, eTagCacheEntry]
|
||||
}
|
||||
|
||||
func newETagCache() cache.TTLCache[string, eTagCacheEntry] {
|
||||
eTagCache := cache.NewTTL[string, eTagCacheEntry](0, 1000, 0)
|
||||
eTagCache.SetTTL(time.Hour, false)
|
||||
|
Reference in New Issue
Block a user