guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

43/66: substitute: Increase TTL from 24h to 36h.


From: Manolis Fragkiskos Ragkousis
Subject: 43/66: substitute: Increase TTL from 24h to 36h.
Date: Thu, 21 May 2015 12:52:03 +0000

phant0mas pushed a commit to branch wip-hurd
in repository guix.

commit 054d05c57d6db173ede0090ee3585e6d95ba0fd9
Author: Ludovic Courtès <address@hidden>
Date:   Mon May 4 15:38:30 2015 +0200

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

diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index b9983c5..ae97f74 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]