Details
-
Improvement
-
Resolution: Fixed
-
High
-
None
-
4.0.7, 4.1.4, 4.2.0
-
None
Description
As explained in issue #12779, there currently is no real, easy way to remove expired items from the cluster (eZDB or eZDFS) databases.
You can currently only use ezcache.php with the --purge option, but this also requires that you specify at least one of expiry, tag or id. Expiry here won't use the expired status from the cluster tables, but will purge items if their mtime falls into the expiry range.
What we need is two scripts:
- a cronjob that purges files with an expired=1 field from the cluster
- a cronjob that purges LOCAL cache files that are NOT on the cluster DB (after they've been purged using the cronjob above). It will have to be configured on EACH webserver using the cluster.