Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24854

Varnish VCL banishing wrong node_ids

    XMLWordPrintable

Details

    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

      1. Create an article and make sure it has a node_id similar to "142"
      2. Create more articles, and make sure one of them has a node_id similar to "142x"
      3. Open the article with the node_id "142x" and make sure you get a "HIT" on the header
      4. Edit the article with "142" and open the article with "142x" and confirm you get a "MISS" in the header

      Attachments

        Activity

          People

            Unassigned Unassigned
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: