fast_revision_purge
13 sites
No security coverage
Fast Revision Purge keeps Drupal fast by safely deleting old revisions in resumable batches. Preview with dry‑run, run via cron or Drush, and protect live drafts and moderated content.
Features
- Blazing-fast, safe purging via batches and queues that prevent timeouts and memory spikes.
- Supports Layout Builder and Paragraph revision purges
- Retention rules you control: keep the latest N revisions, keep revisions newer than X days, or combine both per entity type and per bundle.
- Guards that never touch the default revision, in-use drafts, or moderated content.
- Paragraphs and Media aware to avoid breaking references when cleaning related revision data.
- Dry-run preview to review exact counts before deletion.
- Multilingual friendly behavior across translations.
- Simple Administration UI for configuring and running purges.
- Production-safe defaults that start conservatively.
Highlights
- A ton of safeguard features with sanity check SQL queries and drush commands to show exactly what will be purged
- Uses latest datastructure techniques like BFS to search thru the revisions
- Chunked, resumable batches so long purges complete without timeouts.
- Creates indexes if they don't exist for faster purging
- You control what to purge, Just nodes, nodes with paragraphs or layoutbuilder
- Drush commands designed for automation and CI use.
- A clean Administration package grouping and a distinctive logo to make the project easy to spot.
Post-Installation
- Enable the module in Extend.
- Open Configuration → Development → Fast Revision Purge.
- Choose a policy per entity or bundle: keep the latest N revisions, keep newer than X days, or both.
- Save and run a dry‑run to preview counts.
Drush usage examples:
drush frp:dry-run drush frp:purge drush frp:purge node.article drush frp:status
Additional Requirements
- Drupal core 10 or newer. Compatible with 9.5 when the stack supports it.
- No external libraries required.
- Optional awareness for Content Moderation, Media, and Paragraphs when those modules are enabled.
Recommended modules or libraries
- Admin Toolbar for quicker navigation to the configuration page.
- Queue UI or Ultimate Cron to monitor queues and scheduled runs on busy sites.
- Syslog or Database Logging for detailed purge logs and audits.
Supporting this Module
If this module saves you time and disk space, consider sponsoring development.Buy Me a Coffee
Module Documentation
- Before/After Screenshot attached
- Indepth README.md inside the module