Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: extend expiration time (#13624)

p0nyadff6906af46
diff --git a/backend/plugin/webhook/wecom/app.go b/backend/plugin/webhook/wecom/app.go
index e2bb8ac8b5..60d402eba8 100644
--- a/backend/plugin/webhook/wecom/app.go
+++ b/backend/plugin/webhook/wecom/app.go
@@ -291,7 +291,7 @@ var userIDCache = func() *lru.Cache[string, string] {
return cache
}()
-var notFoundUserCache = expirable.NewLRU[string, time.Time](100, nil, time.Hour*12)
+var notFoundUserCache = expirable.NewLRU[string, time.Time](100, nil, time.Hour*48)
func getTokenCached(ctx context.Context, c *http.Client, corpID, secret string) (string, error) {
tokenCacheLock.Lock()