We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476582b commit ae678afCopy full SHA for ae678af
cache.go
@@ -247,7 +247,7 @@ func (certCache *Cache) unsyncedCacheCertificate(cert Certificate) {
247
rnd := weakrand.Intn(cacheSize)
248
i := 0
249
for _, randomCert := range certCache.cache {
250
- if i == rnd {
+ if i >= rnd && randomCert.managed { // don't evict manually-loaded certs
251
certCache.logger.Debug("cache full; evicting random certificate",
252
zap.Strings("removing_subjects", randomCert.Names),
253
zap.String("removing_hash", randomCert.hash),
0 commit comments