Skip to content

Commit be994fe

Browse files
committed
param: Introduce new ban_any_variant parameter
This will control the number of object variants that we evaluate against the ban list before looking for a vary match. Refs: varnishcache#4236
1 parent c412418 commit be994fe

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

include/tbl/params.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,20 @@ PARAM_SIMPLE(
721721
/* flags */ EXPERIMENTAL
722722
)
723723

724+
PARAM_SIMPLE(
725+
/* name */ ban_any_variant,
726+
/* type */ uint,
727+
/* min */ "0",
728+
/* max */ NULL,
729+
/* def */ "10000",
730+
/* units */ "checks",
731+
/* descr */
732+
"Maximum number of possibly non matching variants that we evaluate "
733+
"against the ban list during a lookup.\n"
734+
"Setting this to 0 means that only the matching variants will be "
735+
"evaluated against the current ban list."
736+
)
737+
724738
PARAM_SIMPLE(
725739
/* name */ max_esi_depth,
726740
/* type */ uint,

0 commit comments

Comments
 (0)