Skip to content

Commit f8ff4e8

Browse files
committed
explain why we also purge in vcl_miss
1 parent d2de934 commit f8ff4e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/Functional/Fixtures/varnish-3/purge.vcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ sub vcl_hit {
1414
}
1515
}
1616

17+
# The purge in vcl_miss is necessary to purge all variants in the cases where
18+
# you hit an object, but miss a particular variant.
1719
sub vcl_miss {
1820
if (req.request == "PURGE") {
1921
purge;

tests/Functional/Fixtures/varnish-4/purge.vcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ sub vcl_hit {
1414
}
1515
}
1616

17+
# The purge in vcl_miss is necessary to purge all variants in the cases where
18+
# you hit an object, but miss a particular variant.
1719
sub vcl_miss {
1820
if (req.method == "PURGE") {
1921
purge;

0 commit comments

Comments
 (0)