erp5_garbage_collector_experimental
Configuration
A configurable subsystem for automatic cleaning the database from "garbage" objects (e.g. the ones that remain after a user clicked "new" and then changed his mind).
It is a kind of alarm, can be created in portal_alarms, periodicity is the same.
There are two configuration parametes:
- object age - how long an object is allowed to stay in the "garbage" state before it is removed
- portal type list - a list of portal types which the collector should analyze
The definition of garbage
By default an object is treated as garbage if it has no title.
It can be customized per portal type by writing scripts like:
[portal_type]_isGarbage
which can analyze objects in any desired way and return True or False.