diff --git a/oidc/oidc.go b/oidc/oidc.go index 997eb40..fc1cef0 100644 --- a/oidc/oidc.go +++ b/oidc/oidc.go @@ -204,8 +204,8 @@ func (p *ProviderConfig) NewProvider(ctx context.Context) *Provider { } var oidcConfigCache, _ = ristretto.NewCache(&ristretto.Config[string, []byte]{ - NumCounters: 10_000, - MaxCost: 1_000 * 1024, // 1k items, 1kB each + NumCounters: 500_000, + MaxCost: 50_000 * 1024, // 50k items, 1kB each, 50mb cache BufferItems: 64, })