Skip to content

Revision pruner

Craig Clark edited this page May 23, 2024 · 2 revisions

The revision pruner removes old drafts, keeping the database from getting too big.

The revisions that are removed are draft revisions that are older than the latest published revision. Any revision that has ever been published is not removed. Updates currently being made, that is, draft revisions newer than the latest published revision, are not removed.

Every edit to a record creates a new revision. If a user edits three sections of a record and then publishes it, that will create three draft revisions and one published revision. The next time the pruner runs, it will remove the draft revisions.

The pruning is done with Content Moderation Revision Delete module. This module is configured to prune once a day. It is triggered by Ultimate Cron.

Note

The pruner, cm_revision_delete is set in cron to run every day. Is should run on the first cron run after midnight. Cron runs every 15 minutes.

Clone this wiki locally