Directory / plugin

Revision Buster

v1.0.0 · by Hilay Trivedi

Features

About this plugin

Features

  • Selective Revision Cleanup: Delete revisions for specific posts or pages as needed.
  • Global Cleanup: Clean up revisions for all posts and pages with a single click.
  • Revisions Retention: Customize how many revisions to retain per post or page.
  • Scheduled Cleanup: Automate cleanup tasks at intervals (hourly, daily, weekly, monthly, or yearly).
  • Cache Management: Uses transients for efficient caching of posts and pages.
  • Custom Cron Intervals: Adds monthly and yearly cleanup schedules.
  • Custom Post Type Support: Handles revisions for all registered post types (future roadmap).

Usage

Admin Settings

  • Revision Cleanup Settings: Manage revision retention rules and schedule automated cleanups.
  • Single Post/Page Cleanup: Select individual posts or pages and delete their revisions.
  • Global Cleanup: Remove revisions for all posts and pages to free up database space.

Automated Cleanup

  • Configure intervals for automated cleanup tasks (hourly, daily, weekly, monthly, yearly).
  • Ensure your database stays optimized without manual intervention.

Hooks and Filters

Actions

  • revision_buster_run_revision_cleanup_cron: Executes the scheduled revision cleanup.
  • save_post & delete_post: Automatically invalidates cached posts when updates or deletions occur.

Filters

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

Technical Details

Cache Management

  • Implements WordPress transients to improve performance when processing large datasets.
  • Efficiently manages cached data to minimize load times during cleanup tasks.

Cleanup Logic

  • Deletes older revisions while retaining the configured number of most recent revisions.
  • Utilizes batch processing for scalability on larger databases.

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher

Roadmap

  • Add support for custom post types.
  • Enhanced UI with analytics and visual cleanup reports.
  • Third-party plugin integration for backup compatibility.
  • Multisite support for network-wide revision cleanup.

Contribution

We welcome your contributions! Feel free to submit issues or pull requests via the GitHub repository.

License

This plugin is open-source and licensed under the GPLv2 or later. Learn more at GPL License.

Acknowledgments

Developed by Hilay Trivedi.

Special thanks to the WordPress community for their continuous support and feedback.