Recycler: add scheduler task to delete deleted items
I didn't find any recycler project here on forge so i am posting it here.
I would like to have a recycler task that will delete all the deleted data in the db (maybe configureable for which tables (in a comma seperated list or so): all OR tt_content,pages,...
[FEATURE] Add scheduler task to remove deleted records
Scheduler task to remove deleted records from
content table(s) which are older than x days.
If a deleted record also contains an upload field,
then the file is also deleted.
Reviewed-by: Markus Klein <email@example.com>
Reviewed-by: Nicole Cordes <firstname.lastname@example.org>
Tested-by: Nicole Cordes <email@example.com>
Reviewed-by: Wouter Wolters <firstname.lastname@example.org>
Reviewed-by: Anja Leichsenring <email@example.com>
Tested-by: Anja Leichsenring <firstname.lastname@example.org>
#1 Updated by Oliver Hader about 8 years ago
- Category set to Recycler
- Status changed from New to Accepted
- Target version set to 4.7.0-alpha3
- PHP Version set to 5.3
Added recycler as category now. You can have a look in the folder "tasks" of the system extension "reports" to see how this is done.The task configuration could then have:
- checkbox "consider all tables"
- multiple checkbox or selector showing all available TCA tables
#3 Updated by Philipp Bergsmann about 8 years ago
I started implementing this feature and found the scheduler-task "Table garbage collection" from the scheduler ext which only cleans the sys_log by now. Should the recycler garbage-collector be included in the recycler ext or should that be joined with the scheduler-task?