Show quoted text>>>>> On Sat, 19 Sep 2015 15:02:54 -0400, "Slaven_Rezic via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text >> I'm using a minicpan.
>> I've pointed my urllist to using a file:// URL.
>> I have cache_metadata set to 1.
>>
>> When I update my minicpan and then enter the CPAN shell, it seems that
>> the
>> shell does not detect the update and still use an old version of the
>> index when
>> using an install command.
>> So I have to manually 'reload' the index ("reload index" command) to
>> fix the
>> issue.
Show quoted text > I guess that a workaround could be to set index_expire=>0. But this
> would probably mean that the metadata is rebuilt every time, even if
> there are no changes. So detecting a modified file would be better.
> And likewise for http, implementing something using
> If-Modified-Since to detect modified remote files would also be
> good.
FWIW, where I use a file:// URL, I usually set
'index_expire' => q[0.1],
I've never had the desire that my cpan shell gets informed faster than
that. I usually read the recent files from elsewhere and type "reload
index" when the cpan shell does know about one of them.
--
andreas