GNU bug report logs -
#52805
[PATCH] substitute: Add a ‘--clear-cache’ option.
Previous Next
Full log
Message #29 received at 52805 <at> debbugs.gnu.org (full text, mbox):
Hi,
Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
> Caching is never to my advantage: it is ‘saving’ only the work I asked
> it to perform, against my wishes. ‘Look how fast I fed you possibly
> bogus data against your will!’ is not an impressive boast.
>
> Is my concern clear? Reasonable?
It’s clear, but I’m not sure it’s reasonable. :-)
When do you have to worry about caches?
‘guix weather’ can cache negative replies (404s) for
%narinfo-negative-ttl = 10mn, unless the server provides a different
‘Cache-Control’ TTL. So there’s a possibility that during that time
window it’ll tell you “nope” when in fact the thing has just arrived.
I think that’s acceptable (there’s a slight delay but nothing’s
“bogus”), and it’s kind to server admins.
(It’s possible for admins to run ‘guix publish --negative-ttl=0’ if they
don’t mind extra traffic from users.)
That said, if you find it sufficiently annoying, what about adding
‘--clear-cache’ to ‘guix weather’?
HTH!
Ludo’.
This bug report was last modified 3 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.