From 42efffd7f66eab9a4da72a61c8c4f8d227d59d02 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Wed, 23 Dec 2020 18:13:52 +0100 Subject: [PATCH] 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. --- src/cache.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cache.c b/src/cache.c index 101ef35..1f1428d 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; -- 1.7.10.4