Description
This has been discussed several places, one of them is:
http://ez.ryba.eu/index.php/ez_publish/random_thoughts/user_readable_cache_block_identifiers
Use case is to give cache-blocks an identifier in code so you can clear by this in admin and using cli. identifier can be used several places if you want, for instance if you have a similar cache block in several variants of a page-layout template or similar and they server same purpose ('frontend_header').
Also a suggestion here about adding support for setting up smart view cache rules to only clear certain cache-blocks by identifier:
http://issues.ez.no/IssueView.php?Id=15364&activeItem=16#comment262829
Optional, debug support could be added so a inline comment is added if debug is enabled like normal template debug does for includes:
"\n<!-- START: cache-block identifier: $identifier ($subTreeExpiry) -->\n"
<.. cache- block content ..>
"\n<!-- STOP: cache-block identifier: $identifier ($subTreeExpiry) -->\n"
Attachments
Issue Links
- relates to
-
EZP-12906 Possibility to share cache-block's across siteaccesses w/ patch
- Closed
-
EZP-17055 allow purging a single cache block from cache / identify all existing cache files relating to a cache block
- Closed
-
EZP-13964 cache-blocks border
- Closed
-
EZP-23305 Improvement: allow a cache-block to be used on the same siteaccess at different positions
- Confirmed