From: Remi Tricot-Le Breton Date: Wed, 23 Dec 2020 17:13:52 +0000 (+0100) Subject: MINOR: cache: Remove redundant test in http_action_req_cache_use X-Git-Tag: v2.4-dev5~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42efffd7f66eab9a4da72a61c8c4f8d227d59d02;p=thirdparty%2Fhaproxy.git MINOR: cache: Remove redundant test in http_action_req_cache_use The suppressed check is fully covered by the next one and can then be removed. --- diff --git a/src/cache.c b/src/cache.c index 101ef35375..1f1428de75 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1767,9 +1767,6 @@ enum act_return http_action_req_cache_use(struct act_rule *rule, struct proxy *p if (!sha1_hosturi(s)) return ACT_RET_CONT; - if ((s->txn->flags & (TX_CACHE_IGNORE|TX_CACHEABLE)) == TX_CACHE_IGNORE) - return ACT_RET_CONT; - if (s->txn->flags & TX_CACHE_IGNORE) return ACT_RET_CONT;