Details
-
Bug
-
Resolution: Fixed
-
High
-
5.3.7, 5.4.4.3
-
None
Description
It seems that within the default VCL we provide for Varnish 4 and 3, when banning a specific page, the regexp is not good and should cause issue regarding cache.
See Using Varnish.
https://github.com/ezsystems/ezpublish-community/blob/master/doc/varnish/vcl/varnish4.vcl#L116
The regex uses "~" and this means "contains", so if we modify location 123, it will also remove cache for location 1234, 1235, 1236 and so on. This must be changed to prevent such behavior.
Steps to Reproduce
- Create an article and make sure it has a node_id similar to "142"
- Create more articles, and make sure one of them has a node_id similar to "142x"
- Open the article with the node_id "142x" and make sure you get a "HIT" on the header
- Edit the article with "142" and open the article with "142x" and confirm you get a "MISS" in the header