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

    XMLWordPrintable

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)

      Attachments

        Activity

          People

            unknown unknown
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: