Blame view

README.md 823 Bytes
55a23d394   Steven Glover   REPO-1486 "Create...
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   rjmfernandes   Create README.md
2

a93188af9   Steven Glover   Changes resulting...
3
  ```
83a89838b   Steven Glover   Changes resulting...
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   Steven Glover   Changes resulting...
14
  ```
bb1a57644   rjmfernandes   Create README.md
15

55a23d394   Steven Glover   REPO-1486 "Create...
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   rjmfernandes   Create README.md
17

55a23d394   Steven Glover   REPO-1486 "Create...
18
  To enable debug logging:
bb1a57644   rjmfernandes   Create README.md
19

a93188af9   Steven Glover   Changes resulting...
20
21
22
  ```
  log4j.logger.org.alfresco.trashcan=debug
  ```