From: wessels <> Date: Sat, 15 Aug 1998 05:52:18 +0000 (+0000) Subject: stop caching if LRU age gets below 300 seconds X-Git-Tag: SQUID_3_0_PRE1~2897 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=734b57eb7bd94c42188e4cd24b8691a38d008169;p=thirdparty%2Fsquid.git stop caching if LRU age gets below 300 seconds --- diff --git a/src/store.cc b/src/store.cc index 774cfa4b11..7509cc01ec 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.439 1998/07/30 23:31:19 wessels Exp $ + * $Id: store.cc,v 1.440 1998/08/14 23:52:18 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -440,6 +440,9 @@ storeCheckCachable(StoreEntry * e) debug(20, 2) ("storeCheckCachable: NO: too big\n"); } else if (EBIT_TEST(e->flag, KEY_PRIVATE)) { debug(20, 3) ("storeCheckCachable: NO: private key\n"); + } else if (storeExpiredReferenceAge() < 300) { + debug(20,2)("storeCheckCachable: NO: LRU Age = %d\n", + storeExpiredReferenceAge()); } else { return 1; }