From 83698b6fa037aa1f3adc38f474be41bac7622ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 3 Sep 2024 11:42:23 +0200 Subject: [PATCH] substitutes: Reduce default negative TTL values. Previous values were overly conservative and often an annoyance. * guix/substitutes.scm (%narinfo-negative-ttl): Reduce to 2mn. (%narinfo-transient-error-ttl): Reduce to 1mn. Change-Id: I8cff927a15d8203fb370369a56f024b8a14f3cc3 --- guix/substitutes.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix/substitutes.scm b/guix/substitutes.scm index e732096933..e31b394020 100644 --- a/guix/substitutes.scm +++ b/guix/substitutes.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013-2021, 2023 Ludovic Courtès +;;; Copyright © 2013-2021, 2023-2024 Ludovic Courtès ;;; Copyright © 2014 Nikita Karetnikov ;;; Copyright © 2018 Kyle Meyer ;;; Copyright © 2020 Christopher Baines @@ -65,11 +65,11 @@ (define %narinfo-negative-ttl ;; Likewise, but for negative lookups---i.e., cached lookup failures (404). - (* 10 60)) + (* 2 60)) (define %narinfo-transient-error-ttl ;; Likewise, but for transient errors such as 504 ("Gateway timeout"). - (* 5 60)) + (* 1 60)) (define %narinfo-cache-directory ;; A local cache of narinfos, to avoid going to the network. Most of the