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

ezcache.php --purge disregards --expiry (w/patch)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.4, 4.0.6, 4.1.1, 4.1.3, 4.2.0alpha1, 4.2.0beta1, 4.2.0rc1, 4.2.0rc2
    • Component/s: Caching
    • Labels:
      None

      Description

      The --purge parameter of bin/php/ezcache.php overrides the --expiry parameter, and clears everything. This is undocumented, and undesirable IMHO. The attached patch solves this.

      Steps to reproduce
      bin/php/ezcache.php --clear-id=template-block --expiry='-2 days' --purge
      

      In this case, all template blocks will be deleted. I would expect that only the template blocks older than two days (48 hours) would be deleted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gl (inactive) Gunnstein Lye
              Reporter:
              gl (inactive) Gunnstein Lye
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: