~ruther/guix-local

5e6039a48b136d34d21b34237617d77580566e51 — Ludovic Courtès 11 years ago 2534fc0
substitute: Increase TTL from 24h to 36h.

* guix/scripts/substitute.scm (%narinfo-ttl): Increase to 36h.
1 files changed, 4 insertions(+), 2 deletions(-)

M guix/scripts/substitute.scm
M guix/scripts/substitute.scm => guix/scripts/substitute.scm +4 -2
@@ 84,8 84,10 @@ disabled!~%"))

(define %narinfo-ttl
  ;; Number of seconds during which cached narinfo lookups are considered
  ;; valid.
  (* 24 3600))
  ;; valid.  This is a reasonable default value (corresponds to the TTL for
  ;; nginx's .nar cache on hydra.gnu.org) but we'd rather want publishers to
  ;; state what their TTL is in /nix-cache-info.  (XXX)
  (* 36 3600))

(define %narinfo-negative-ttl
  ;; Likewise, but for negative lookups---i.e., cached lookup failures.