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

DOC: ezcache.php --expiry parameter can only be used together with --purge

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.3.5, 5.4.2
    • 5.3, 5.4.0
    • Documentation
    • None
    • Legacy documentation

    Description

      The --expiry parameter to bin/php/ezcache.php will only have an effect when used together with --purge. This is by design. This doc needs to be amended:
      https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Scripts/Generic/ezcache.php

      The entry for --expiry says:
      Expire caches that are older than the specified date. The date must be provided according to the GNU Date Input Formats syntax. When combined with the "--purge" parameter, the script will clear the caches instead of expiring them.

      This could be changed to:
      Expire caches that are older than the specified date. The date must be provided according to the GNU Date Input Formats syntax. This can only be used together with the "--purge" parameter, which means the script will delete the caches.

      Example 7 must also be amended. It says:
      php bin/php/ezcache.php --expiry='-2 days'
      Expire all caches that are older than two days.

      This could be changed to:
      php bin/php/ezcache.php --expiry='-2 days' --purge
      Clear all caches that are older than two days.

      Additionally, the doc within ezcache.php itself should be amended accordingly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gunnstein.lye@ibexa.co Gunnstein Lye
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 30 minutes
                30m