Details
-
Bug
-
Resolution: Fixed
-
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
-
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
- relates to
-
EZP-10674 Cache blocks purge
- Closed