mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-10-06 18:18:36 +03:00
FAQ: Re-checking binary caches
This commit is contained in:
parent
f5bbcde454
commit
61ff4ac712
@ -216,7 +216,18 @@ Using `Nix`:
|
||||
$ nix-build helpers/bench.nix --option extra-binary-caches https://hydra.snabb.co`
|
||||
|
||||
|
||||
How do I force nix to re-check whether something exists at a binary cache?
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Nix caches the contents of binary caches so that it doesn't have to query them
|
||||
on every command. This includes negative answers (cache doesn't have something).
|
||||
The default timeout for that is 1 hour as of writing.
|
||||
|
||||
To wipe all cache-lookup-caches:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ rm $HOME/.cache/nix/binary-cache-v5.sqlite*
|
||||
|
||||
Alternatively, use the ``narinfo-cache-negative-ttl`` option to reduce the
|
||||
cache timeout.
|
||||
|
Loading…
Reference in New Issue
Block a user