diff --git a/api/routes.go b/api/routes.go index 485e9a76..75665033 100644 --- a/api/routes.go +++ b/api/routes.go @@ -210,15 +210,7 @@ func defaultMiddlewares(oauthAuther auth.Authenticator, legacyProvider auth.Prov if err != nil { panic(err) } - lstore, err := sturdycache.AddLocalCache(store) - if err != nil { - panic(err) - } - - cache, err := query.NewQueryCacheWithInvalidator(lstore) - if err != nil { - panic(err) - } + cache := query.NewQueryCache(store) logger.Log().Infof("cache configured: master=%s, replicas=%s", config.GetSturdyCacheMaster(), config.GetSturdyCacheReplicas()) defaultHeaders := []string{ diff --git a/app/query/cache.go b/app/query/cache.go index 7155a411..a81b38f8 100644 --- a/app/query/cache.go +++ b/app/query/cache.go @@ -182,7 +182,7 @@ func (r CacheRequest) Expiration() time.Duration { case MethodResolve: return 600 * time.Second case MethodClaimSearch: - return 300 * time.Second + return 160 * time.Second default: return 60 * time.Second }