diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-18 14:38:31 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-18 14:38:31 +0100 |
commit | ea756b3654931f23839aee9f461a8c891c6ffe43 (patch) | |
tree | 69f2b18aa5c8ac3db16c513fe371ab4c391d8602 /src/nix/main.cc | |
parent | 1bbc66f8650150898f8d8e3c8c86f3b27802e019 (diff) |
--refresh: Imply setting .narinfo disk cache TTL to 0
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 418396280..80422bd24 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -330,8 +330,11 @@ void mainWrapped(int argc, char * * argv) fileTransferSettings.connectTimeout = 1; } - if (args.refresh) + if (args.refresh) { settings.tarballTtl = 0; + settings.ttlNegativeNarInfoCache = 0; + settings.ttlPositiveNarInfoCache = 0; + } args.command->second->prepare(); args.command->second->run(); |