]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cache: Remove redundant test in http_action_req_cache_use
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 23 Dec 2020 17:13:52 +0000 (18:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Dec 2020 16:18:00 +0000 (17:18 +0100)
The suppressed check is fully covered by the next one and can then be
removed.

src/cache.c

index 101ef35375b40ab6bd251866297ae165f35d2137..1f1428de75be97ed961c875ef9bc906b7f6ee339 100644 (file)
@@ -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;