From e930a17b0b87682fa80222ff3a662dd1972cf4b2 Mon Sep 17 00:00:00 2001 From: emilylange Date: Wed, 18 Dec 2024 16:57:05 +0100 Subject: [PATCH] fix(forgejo): lower `cache.last_commit` TTL to limit size of the cache We really don't want to cache them for a year, which is the default. Yes, computing them may be expensive, but not worth a multi-gigabyte redis database that takes minutes to load into RAM on service (re)start. --- services/forgejo/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/forgejo/default.nix b/services/forgejo/default.nix index e2512c0..93b5596 100644 --- a/services/forgejo/default.nix +++ b/services/forgejo/default.nix @@ -73,6 +73,10 @@ in ITEM_TTL = "72h"; # increased from default 16h }; + "cache.last_commit" = { + ITEM_TTL = "24h"; # from default 8760h (1 year) + }; + ui = { SHOW_USER_EMAIL = false; };