Automatically delete old SiteTree page versions from SilverStripe
An extension for SilverStripe to automatically delete old SiteTree page versions,
keeping the last XX versions per page.
It works for any page extending the SiteTree model, and includes all child models
(eg: Page extends SiteTree, so both Page_versions & SiteTree_versions are truncated).
The module adds two manual tasks to:
Installation can be done either by composer or by manually downloading a release.
composer require "axllent/silverstripe-version-truncator"
Configuration is optional, however you can create a YML file (eg:
and add/edit the following values:
Axllent\VersionTruncator\VersionTruncator: keep_versions: 10 # how many (published) versions of each page to keep keep_drafts: 5 # how many drafts of each page to keep keep_redirects: true # keep page versions that have a different URLSegment (for redirects) keep_old_page_types: false # keep page versions where page type (ClassName) has changed
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem