]> git.kaiwu.me - haproxy.git/commit
MINOR: cache: Stop to explicitly loop on the proxy's filter_configs list
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 09:48:00 +0000 (10:48 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 13:08:45 +0000 (14:08 +0100)
commit92a690be09e89440787a78462719f0562f1bb01a
treeffd3e9017fee6cd6d36d22d4f01cb8f65b2255b9
parentda9a0781ce4bd8b11a1ce6c8e3783d27b8bf2a37
MINOR: cache: Stop to explicitly loop on the proxy's filter_configs list

The "cache" filter keyword parser and the implicit "cache-store"
declaration resolution both scanned the filter_configs list of the proxy
by hand to find a previously declared cache filter configuration. The
lookup filters were inlined in the loops, matching on the filter id and
the cache name.

The parsers now use flt_find_conf() with a match callback, the supported
way to find a filter configuration, which walks the right list depending
on the filter mode of the proxy. The implicit cache-store instance is
added directly with its class, without a name lookup through the class
registry, and the implicit configuration replaced by an explicit
declaration is removed with flt_conf_delete().
src/cache.c