Run token cache and blacklist cleanup every minute.

This commit is contained in:
2024-10-03 14:00:40 +01:00
parent 13572003a5
commit 0ada593437
+1 -1
View File
@@ -311,7 +311,7 @@ func (t *TraefikOidc) buildAuthURL(redirectURL, state, nonce string) string {
}
func (t *TraefikOidc) startTokenCleanup() {
ticker := time.NewTicker(5 * time.Minute)
ticker := time.NewTicker(1 * time.Minute)
go func() {
for range ticker.C {
t.logger.Debug("Cleaning up token cache")