[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6152) proxycache enhancements

Pierangelo Masarati wrote:
> hyc@OpenLDAP.org wrote:
>> Some ideas that came out of discussions at the Ubuntu Developer Summit this
>> week...
>> It would be nice for pcache to detect when connectivity to the remote server has
>> been lost. In that case, cache expiration should be stopped, and the cache
>> contents should remain intact until connectivity is restored.
> Sounds fair.
>> Also, when connectivity is restored, pcache should explicitly refresh all the
>> entries it currently holds, rather than allowing them to be immediately expired.
> Sounds an overkill?

Perhaps. It is certainly likely that any entries in the cache will be stale; 
when connectivity is restored and expiration is re-enabled the cached entries 
will probably be immediately removed. While it will be no problem to retrieve 
the entries again since the network is available, the concern is that only a 
subset of the originally cached entries will be retrieved through normal user 
activity, but the entire set needs to be preserved in anticipation of the next 
disconnect event.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/