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

ezcache.php --purge does not purge template-blocks (patch)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.1
    • 4.0.7, 4.1.4, 4.2.0, 4.3.0, 4.4.0, 4.5.0alpha
    • Caching
    • None

    Description

      It seems that for cache items that have 'function' defined but no 'purge-function', ezcache.php --purge will never purge anything. The 'function' will be called instead. The patch fixes this.

      Related, earlier fix:
      http://issues.ez.no/17097

      Steps to reproduce

      Tested on DFS cluster and normal FS:
      php bin/php/ezcache.php -s ezflow_site_admin --clear-id=template-block --purge
      does exactly the same as
      php bin/php/ezcache.php -s ezflow_site_admin --clear-id=template-block

      Both will call eZCache::clearTemplateBlockCache(), this is defined as a 'function', not a 'purge-function'. It just sets expiry, and does not purge anything. (BUG)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gl (inactive) gl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 27 minutes
                  1h 27m