mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
install: Do not cache lookup failures.
Possibly fixes <http://bugs.gnu.org/22209>. * gnu/system/install.scm (%nscd-minimal-caches)[negative-time-to-live]: Set to zero.
This commit is contained in:
parent
8823ed4e12
commit
c96ba2cf5e
1 changed files with 6 additions and 1 deletions
|
@ -237,7 +237,12 @@ (define %nscd-minimal-caches
|
|||
;; Minimal in-memory caching policy for nscd.
|
||||
(list (nscd-cache (database 'hosts)
|
||||
(positive-time-to-live (* 3600 12))
|
||||
(negative-time-to-live 20)
|
||||
|
||||
;; Do not cache lookup failures at all since they are
|
||||
;; quite likely (for instance when someone tries to ping a
|
||||
;; host before networking is functional.)
|
||||
(negative-time-to-live 0)
|
||||
|
||||
(persistent? #f)
|
||||
(max-database-size (* 5 (expt 2 20)))))) ;5 MiB
|
||||
|
||||
|
|
Loading…
Reference in a new issue