]> git.kaiwu.me - haproxy.git/commit
MINOR: cache: Use the filter helpers for cache checks and post-check
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:06:15 +0000 (18:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commitc05fcfddea872e7e8425e9f0e77e1a87fa512ad1
treec041fd5fde2d2455cfb95937a3842063eaf2c4e6
parent2b59385fbf98fdfdda46ed43c9a521e893ebe003
MINOR: cache: Use the filter helpers for cache checks and post-check

Rework cache_store_check() to walk the filter configurations with
flt_foreach_conf() in response order instead of iterating the legacy
filter_configs directly. This lets the ordering checks work with the
filter instances, and the legacy checks are skipped in instance mode
since they are handled by the instance parsers.

While here, also accept the decompression filters in the implicit cache
declaration, and reject a response decompression filter placed after the
cache, mirroring the existing compression check.

Same conversion for post_check_cache(), which now references the cache in
matching cache filter configurations through flt_foreach_conf().
src/cache.c