Blame view
README.md
823 Bytes
55a23d394
|
1 |
This library adds a scheduled job that will empty your Alfresco trashcan according to configuration. The following properties can be configured in alfresco-global.properties: |
bb1a57644
|
2 |
|
a93188af9
|
3 |
``` |
83a89838b
|
4 5 6 7 8 9 10 11 12 13 |
# cron schedule for the Trashcan Cleaner job # to disable, set it to something like trashcan-cleaner.cron=* * * * * ? 2099 trashcan-cleaner.cron=0 30 2 * * ? # the period for which trashcan items are kept (in java.time.Duration format) # default is 1 month trashcan-cleaner.keepPeriod=P1M # how many trashcan items to delete per job run trashcan-cleaner.deleteBatchCount=1000 |
a93188af9
|
14 |
``` |
bb1a57644
|
15 |
|
55a23d394
|
16 |
In the above configuration the scheduled process will clean all deleted items older than one day to a maximum of 1000 (each execution) each hour at the middle of the hour (30 minutes). |
bb1a57644
|
17 |
|
55a23d394
|
18 |
To enable debug logging: |
bb1a57644
|
19 |
|
a93188af9
|
20 21 22 |
``` log4j.logger.org.alfresco.trashcan=debug ``` |