From e37d50289509dcac2303bc4de7065879dd58c731 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 13 Feb 2024 13:34:51 +0100 Subject: [PATCH] add instructions to wipe the substituter lookup cache (#9498) * add instructions to wipe the substituter lookup cache --- src/libstore/globals.hh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 070e252b6..941adba78 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -793,10 +793,17 @@ public: Setting ttlNegativeNarInfoCache{ this, 3600, "narinfo-cache-negative-ttl", R"( - 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. + The TTL in seconds for negative lookups. + If a store path is queried from a [substituter](#conf-substituters) but was not found, there will be a negative lookup cached in the local disk cache database for the specified duration. + + Set to `0` to force updating the lookup cache. + + To wipe the lookup cache completely: + + ```shell-session + $ rm $HOME/.cache/nix/binary-cache-v*.sqlite* + # rm /root/.cache/nix/binary-cache-v*.sqlite* + ``` )"}; Setting ttlPositiveNarInfoCache{