[email protected] (Ludovic Courtès) writes:

> Mark H Weaver <[email protected]> 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