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

Add cache-block identifier parameter and possibility to clear cache-blocks by identifier

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Future
    • 4.2.0, 4.3.0, 4.4.0beta2
    • Caching
    • None

    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

        Activity

          People

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

            Dates

              Created:
              Updated: