From 891ff6af2a24e477d03890382b2ed7c7fadc6662 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 20 Oct 2022 21:48:23 +0300 Subject: [PATCH] lib/workingsetcache: increase default cache expiration from 10 minutes to 20 minutes This increases the maximum time for cache population with new entries from 20 minutes to 40 minutes. This This change shouldn't increase memory usage for caches, since the prev cache cleaner should free up memory by deleting unused prev cache as soon as possible. See 08ca45d2384687304d94637dfa6efeb14fe6ee9a for details on prev cache cleaner. --- lib/workingsetcache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workingsetcache/cache.go b/lib/workingsetcache/cache.go index 47e247ae0..e341cc385 100644 --- a/lib/workingsetcache/cache.go +++ b/lib/workingsetcache/cache.go @@ -17,7 +17,7 @@ const ( whole = 2 ) -const defaultExpireDuration = 10 * time.Minute +const defaultExpireDuration = 20 * time.Minute // Cache is a cache for working set entries. //