Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
4.3.0, 4.4.0alpha3
-
None
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)