From: wessels <> Date: Fri, 24 Jul 1998 05:50:51 +0000 (+0000) Subject: ENTRY_SPECIAL objects must always be cache hits X-Git-Tag: SQUID_3_0_PRE1~2995 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=abe471eff49ca6c4c1a080b4045da496ca1414d9;p=thirdparty%2Fsquid.git ENTRY_SPECIAL objects must always be cache hits --- diff --git a/src/client_side.cc b/src/client_side.cc index d4c485a1c8..31aed88c41 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.364 1998/07/22 20:37:09 wessels Exp $ + * $Id: client_side.cc,v 1.365 1998/07/23 23:50:51 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1606,6 +1606,10 @@ clientProcessRequest2(clientHttpRequest * http) storeRelease(e); http->entry = NULL; return LOG_TCP_MISS; + } else if (EBIT_TEST(e->flag, ENTRY_SPECIAL)) { + /* Special entries are always hits, no matter what the client says */ + http->entry = e; + return LOG_TCP_HIT; } else if (EBIT_TEST(r->flags, REQ_NOCACHE)) { /* NOCACHE should always eject a negative cached object */ if (EBIT_TEST(e->flag, ENTRY_NEGCACHED))