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

Cache Block subtree_expiry does not expire when TemplateCompile is disabled

    Details

      Description

      The subtree_expiry parameter to cache-block should expire the block whenever content is published in the given subtree. This does not happen when TemplateCompile is disabled.

      Steps to reproduce
      • Set TemplateCompile=disabled in site.ini, clear caches
      • Set the following code at the top of a node/view/full template:

        {set-block scope=root variable=cache_ttl}0{/set-block}
        Timestamp outside cache block: {currentdate()}<br />
        {cache-block subtree_expiry=$node.node_id}
        Timestamp inside cache block: {currentdate()}<br />
        {/cache-block}
        

      • Refresh the page, note timestamps
      • Publish something under the given node
      • Refresh the page, note "Timestamp inside cache block" has not changed (BUG)
      • Set TemplateCompile=enabled in site.ini
      • Publish something under the given node
      • Refresh the page, note "Timestamp inside cache block" has changed (OK)

        Activity

        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            unknown
            Reporter:
            (inactive) Gunnstein Lye
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: