Revision Buster

plugin banner

Features

Author:Hilay Trivedi (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:6.7.1
Plugin version:1.0.0
Added to WordPress repository:05-01-2025
Last updated:05-01-2025
Rating, %:0
Rated by:0
Plugin URI:https://github.com/HILAYTRIVEDI/revision-bust...
Total downloads:135
plugin download
Click to start download

Features

  • Selective Revision Cleanup: Choose specific posts or pages to delete revisions for.
  • Global Cleanup: Remove revisions for all posts and pages in one click.
  • Revisions Retention: Configure the number of revisions to retain for each post or page.
  • Scheduled Cleanup: Set automated cleanup intervals (hourly, daily, weekly, monthly, or yearly).
  • Cache Management: Efficiently caches posts and pages to optimize performance.
  • Custom Cron Intervals: Supports monthly and yearly cron schedules.

Usage

Admin Page

  • Revision Cleanup Settings: Manage the number of revisions to retain and schedule automated cleanups.
  • Single Post/Page Cleanup: Select a specific post or page and delete its revisions.
  • Global Cleanup: Delete revisions for all posts and pages.

Automated Cleanup

  • Schedule cleanup tasks at intervals (hourly, daily, weekly, monthly, or yearly) to ensure your database remains optimized.

Hooks and Filters

Actions

  • revision_buster_run_revision_cleanup_cron: Executes the revision cleanup process.
  • save_post & delete_post: Invalidates cached posts when a post or page is updated or deleted.

Filters

  • cron_schedules: Adds custom intervals (monthly, yearly) to the WordPress cron schedules.

Technical Details

Cache Management

The plugin uses WordPress transients to cache all posts and pages, improving performance when processing large numbers of posts.

Cleanup Logic

  • Deletes all revisions for a post while retaining the specified number of recent revisions.
  • Supports batch processing for scalability.

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher

Roadmap

  • Add support for custom post types.
  • Enhanced UI for managing cleanup settings.
  • Integration with third-party backup plugins.

Contribution

Feel free to submit issues or pull requests on the GitHub repository.

License

This plugin is open-source and licensed under the MIT License.

Acknowledgments

Developed by Hilay Trivedi.