From: Alex Rousskov Date: Sat, 19 Apr 2014 23:05:51 +0000 (-0600) Subject: Allow HITs on entries backed by a shared memory cache only. X-Git-Tag: SQUID_3_5_0_1~170^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=557e770f1bccad7dc24b11df0acd402952ec7068;p=thirdparty%2Fsquid.git Allow HITs on entries backed by a shared memory cache only. A typo in r12501.1.59 "Do not become a store_client for entries that are not backed by Store" prevented such entries from being used for HITs and possibly even purged them from the memory cache. --- diff --git a/src/store.cc b/src/store.cc index e4ecf40557..206e28d86f 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1537,7 +1537,7 @@ StoreEntry::validToSend() const return 0; if (mem_obj->memCache.index >= 0) // backed by a shared memory cache - return 0; + return 1; // StoreEntry::storeClientType() assumes DISK_CLIENT here, but there is no // disk cache backing so we should not rely on the store cache at all. This