]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
stop caching if LRU age gets below 300 seconds
authorwessels <>
Sat, 15 Aug 1998 05:52:18 +0000 (05:52 +0000)
committerwessels <>
Sat, 15 Aug 1998 05:52:18 +0000 (05:52 +0000)
src/store.cc

index 774cfa4b11e4c8ff8cd92f2776bc69ef766b72a1..7509cc01ec239d4525adc7d5f128e48dd95fbf94 100644 (file)
@@ -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;
     }