From a323c23332954a0355792493ae778f49c288d9a4 Mon Sep 17 00:00:00 2001 From: Gabriel Bernal Date: Wed, 12 Feb 2025 16:08:45 +0100 Subject: [PATCH] set ttlAutopurge to true as ttl is set for codemirror prometheus client cache (#16024) Signed-off-by: Gabriel Bernal --- web/ui/module/codemirror-promql/src/client/prometheus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ui/module/codemirror-promql/src/client/prometheus.ts b/web/ui/module/codemirror-promql/src/client/prometheus.ts index 72e34d4ec5..7fce7f1a17 100644 --- a/web/ui/module/codemirror-promql/src/client/prometheus.ts +++ b/web/ui/module/codemirror-promql/src/client/prometheus.ts @@ -294,7 +294,7 @@ class Cache { constructor(config?: CacheConfig) { const maxAge = { ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000, - ttlAutopurge: false, + ttlAutopurge: true, }; this.completeAssociation = new LRUCache>>(maxAge); this.metricMetadata = {};