guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cache eviction policy of ‘guix publish’


From: Mark H Weaver
Subject: Re: Cache eviction policy of ‘guix publish’
Date: Thu, 20 Jul 2017 20:28:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Mark H Weaver <address@hidden> skribis:
>
>> How about simply adding an option to 'guix publish' that prevents any
>> NAR/NARINFO from being expired from the cache as long as the
>> corresponding item is present in the store?  It could be called
>> something like --never-expire-valid-store-items.
>>
>> More concretely, at the point in the code where a cache item is expired
>> in the current code, insert an additional check: if the
>> --never-expire-valid-store-items option is enabled and the corresponding
>> store path is still valid, then do not expire it.
>>
>> What do you think?
>
> Good idea.  The patch below implements this policy.  I’m tempted to just
> make that policy the default and not even add a command-line option to
> switch to the current policy.  WDYT?

Sure, sounds good to me.

    Thanks!
      Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]