From e25394f965aa025369a922cce396960f0c29e880 Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Thu, 7 Nov 2024 15:22:00 +0800 Subject: [PATCH] perf: tweak LogEventsCache size and ttl --- lib/logflare/logs/log_events_cache.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logflare/logs/log_events_cache.ex b/lib/logflare/logs/log_events_cache.ex index f67ea5e83..57a919c29 100644 --- a/lib/logflare/logs/log_events_cache.ex +++ b/lib/logflare/logs/log_events_cache.ex @@ -22,10 +22,10 @@ defmodule Logflare.Logs.LogEvents.Cache do hooks: [ if(stats, do: Utils.cache_stats()), - Utils.cache_limit(5_000) + Utils.cache_limit(15_000) ] |> Enum.filter(& &1), - expiration: Utils.cache_expiration_min(60) + expiration: Utils.cache_expiration_min(15) ] ] }