From: wessels <> Date: Wed, 8 Sep 1999 04:15:11 +0000 (+0000) Subject: skip adding objects that will probably be replaced before the next X-Git-Tag: SQUID_3_0_PRE1~2120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17a80fc2fa075d86bf3d64b9e063d52afd74a5a7;p=thirdparty%2Fsquid.git skip adding objects that will probably be replaced before the next digest update. --- diff --git a/src/store_digest.cc b/src/store_digest.cc index c5e371dbc0..b65fc9d14f 100644 --- a/src/store_digest.cc +++ b/src/store_digest.cc @@ -1,5 +1,5 @@ /* - * $Id: store_digest.cc,v 1.34 1998/12/05 00:54:44 wessels Exp $ + * $Id: store_digest.cc,v 1.35 1999/09/07 22:15:11 wessels Exp $ * * DEBUG: section 71 Store Digest Manager * AUTHOR: Alex Rousskov @@ -222,9 +222,19 @@ storeDigestAddable(const StoreEntry * e) StoreDigestRebuildPeriod); return 0; } - /* idea: how about also skipping very fresh (thus, potentially unstable) - * entries? Should be configurable through cd_refresh_pattern, of course */ - + /* + * idea: how about also skipping very fresh (thus, potentially + * unstable) entries? Should be configurable through + * cd_refresh_pattern, of course. + */ + /* + * idea: skip objects that are going to be purged before the next + * update. + */ +#if !HEAP_REPLACEMENT + if ((squid_curtime + StoreDigestRebuildPeriod) - e->lastref > storeExpiredReferenceAge()) + return 0; +#endif return 1; }