跳到内容

Revision Buster

v1.0.0

Hilay Trivedi · 2025年1月5日 上架

Features

正在使用
10 以下
评分
暂无
累计下载
2,224
最近更新
2025年5月20日
需要 WordPress 4.7+已测试到 6.9.12PHP 7.4+

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums