add instructions to wipe the substituter lookup cache (#9498)

* add instructions to wipe the substituter lookup cache
This commit is contained in:
Valentin Gagarin 2024-02-13 13:34:51 +01:00 committed by GitHub
parent 9d87f25673
commit e37d502895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -793,10 +793,17 @@ public:
Setting<unsigned int> 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<unsigned int> ttlPositiveNarInfoCache{