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

Varnish VCL banishing wrong node_ids

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.7, 5.4.4.3
    • Fix Version/s: Customer request, 5.4.5, 2015.12
    • Component/s: Caching
    • Labels:
      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

      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

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

              Dates

              • Created:
                Updated:
                Resolved: