From 33b08899d591125ad7900e7005e2b8862f31bba0 Mon Sep 17 00:00:00 2001 From: AmineChikhaoui Date: Tue, 3 Apr 2018 11:33:39 +0100 Subject: re-order the options using the alphabetical order and improve the example in the positive lookup case --- doc/manual/command-ref/conf-file.xml | 54 +++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/doc/manual/command-ref/conf-file.xml b/doc/manual/command-ref/conf-file.xml index 1033d385e79d..a4d411d7075b 100644 --- a/doc/manual/command-ref/conf-file.xml +++ b/doc/manual/command-ref/conf-file.xml @@ -456,6 +456,18 @@ builtins.fetchurl { + negative-disk-cache-ttl + + + + The TTL in seconds for negative lookups. If a store path is + queried from a substituter but was not found, there will be a + negative lookup cached in the local disk cache database for the + specified duration. + + + + netrc-file @@ -511,6 +523,23 @@ password my-password + positive-disk-cache-ttl + + + + The TTL in seconds for positive lookups. If a store path is + queried from a substituter, the result of the query will be cached + in the local disk cache database including some of the NAR + metadata. The default TTL is a month, setting a shorter TTL for + positive lookups can be useful for binary caches that have + frequent garbage collection, in which case having a more frequent + cache invalidation would prevent trying to pull the path again and + failing with a hash mismatch if the build isn't reproducible. + + + + + pre-build-hook @@ -788,31 +817,6 @@ password my-password - negative-disk-cache-ttl - - - - The TTL in seconds for negative lookups. If a store path is queried from a substituer but - was not found, there will be a negative lookup cached in the local disk cache database for the specified - duration. - - - - - - positive-disk-cache-ttl - - - - The TTL in seconds for positive lookups. If a store path is queried from a substituer, the result of - the query will be cached in the local disk cache database including some of the NAR metadata. Setting a TTL - for positive lookups can be useful in case of builds that aren't reproducible, in which case having a more - frequent cache invalidation would prevent hash mismatch issues. - - - - - -- cgit 1.4.1