diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-09-03 11:42:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-16 00:16:21 +0200 |
commit | 83698b6fa037aa1f3adc38f474be41bac7622ed8 (patch) | |
tree | db58884dc5fe7237ac5bea832b95eb143216f9a9 | |
parent | 85556e1dab5040e9f570fd2606fef563bf0bbb83 (diff) | |
download | guix-83698b6fa037aa1f3adc38f474be41bac7622ed8.tar guix-83698b6fa037aa1f3adc38f474be41bac7622ed8.tar.gz |
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
-rw-r--r-- | guix/substitutes.scm | 6 |
1 files 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 <ludo@gnu.org> +;;; Copyright © 2013-2021, 2023-2024 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.org> ;;; Copyright © 2018 Kyle Meyer <kyle@kyleam.com> ;;; Copyright © 2020 Christopher Baines <mail@cbaines.net> @@ -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 |