This commit is contained in:
parent
8bb6fdc03d
commit
7886a3e60f
1 changed files with 1 additions and 1 deletions
2
cache.go
2
cache.go
|
@ -162,7 +162,7 @@ func (rc *ResultsCache) keyToString(key CacheKey) string {
|
|||
|
||||
// checkAndCleanCache removes items if memory usage exceeds the limit.
|
||||
func (rc *ResultsCache) checkAndCleanCache() {
|
||||
for rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes {
|
||||
if rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes {
|
||||
rc.cleanOldestItems()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue