Document versions accumulate over time. For example, every publish action creates one new version. Given enough time this often causes millions of often unneeded versions. To counteract this amassment of versions the Version Store schedules a job based on a cron expression to declutter the situation. We call this job execution version decluttering. Refer to the Version Store Configuration for all configuration options.
A version is considered obsolete if one of the following conditions is met:
- The number of versions per document is exceeded.
- The maximum age of a version is exceeded.
Please note that since version 5.10.6 there will always remain at least 15 versions of a document even if these are older than the configured maximum age. However this is independent from the configured maximum number of versions (there may be less than 15 versions if the maximum number of versions is below 15).
You can configure both conditions on a global level and on a node type level. On a document level you also have the ability to overwrite the maximum number of versions using the property sophora:maxVersionsToKeep. By default no such limit is set.