an expired entry if it was used within the last 60 seconds. But we
also must require there to be some valid addresses!
/*
- * $Id: ipcache.cc,v 1.133 1997/10/21 15:59:38 wessels Exp $
+ * $Id: ipcache.cc,v 1.134 1997/10/21 18:40:32 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
return 0;
if (i->status == IP_CACHED)
if (squid_curtime - i->lastref < 60)
- return 0;
+ if (i->addrs.count > 0)
+ return 0;
return 1;
}
ipcache_dnsDispatch(dnsData, i);
return;
}
- if (NDnsServersAlloc > 0) {
+ if (NDnsServersAlloc) {
ipcacheEnqueue(i);
return;
}