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

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.4, 4.0.6, 4.1.1, 4.1.3, 4.2.0alpha1, 4.2.0beta1, 4.2.0rc1, 4.2.0rc2
    • Caching
    • 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

        Activity

          People

            gl gl
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: