Skip to content

Commit

Permalink
Merge pull request NixOS#5 from nh2/faq-cache-refresh
Browse files Browse the repository at this point in the history
FAQ: Re-checking binary caches
  • Loading branch information
domenkozar authored Sep 23, 2018
2 parents f5bbcde + 61ff4ac commit 60fd505
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 60fd505

Please sign in to comment.