diff options
author | Christopher Baines <mail@cbaines.net> | 2021-04-19 19:34:34 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-04-19 19:34:34 +0100 |
commit | 9817ca99965b338ebec431a7f2ab40f8bac4a429 (patch) | |
tree | ee0bb8faf2b47dc1536cbf159af597e05718bf88 /tests/guix-lint.sh | |
parent | 2f6cbd55b6b1d196672e13a3231bfb288521ad60 (diff) | |
download | guix-stop-caching-negative-narinfo-lookups.tar guix-stop-caching-negative-narinfo-lookups.tar.gz |
substitutes: Don't cache negative lookups or transient errors.stop-caching-negative-narinfo-lookups
Caching these responses can delay users getting substitutes, since they'll
have to wait at least as long as the cache TTL to fetch the substitute, even
if it's available sooner.
* guix/substitutes.scm (%narinfo-negative-ttl, %narinfo-transient-error-ttl):
Remove variables.
(cache-narinfo!): Adjust to not use the negative TTL.
(fetch-narinfos): Don't cache non 200 status code responses.
Diffstat (limited to 'tests/guix-lint.sh')
0 files changed, 0 insertions, 0 deletions