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

allow purging a single cache block from cache / identify all existing cache files relating to a cache block

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.4.0alpha4
    • Caching
    • None

    Description

      Currently it is nearly impossible to find the cache files generated for a given cache block, due to the way the names of the cache files are generated (crc32 of the concatenation of all cache block keys, template file and line and col. of the block).

      If it was possible to trace cache block files to their original cache block, it would be easy to
      . gather stats
      . allow on-demand clearing of the cache for a single block

      It does not look hard to do: in eztemplatecacheblock.php two functions are used to calculate the path+filename of the cache files generated by a cache block.
      Patching thos two calls, it would be easy to create a folder hierarchy similar to:
      cache/cache-blocks/md5(filename)/line_col/md5(keys)

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: