Linux 软件免费装
Banner图

Biddut Revision Cleaner

开发者 shahriarabiddut
更新时间 2026年4月20日 20:27
捐献地址: 去捐款
PHP版本: 8.1 及以上
WordPress版本: 6.9
版权: GPL v2 or later
版权网址: 版权信息

标签

revision wordpress optimization database cleanup revision cleaner clean revisions

下载

1.0.0 1.1.0

详情介绍:

Biddut Revision Cleaner helps you take full control of WordPress post revisions. Set smart retention rules per post type, analyze your database before touching anything, preview exactly what will be deleted, and clean with a single confirmed click — safely and without guesswork. The plugin covers all post types that support revisions — not just public ones. This includes Reusable Blocks (wp_block), Full Site Editing Templates (wp_template), Template Parts (wp_template_part), Navigation menus (wp_navigation), and any custom post type that registers revision support. Smart Revision Retention Rules One-Click Safe Cleanup Scheduled Cleanup (v1.1.0) Post-Cleanup Email Notifications (v1.1.0) Smart Trigger Mode (v1.1.0) Cleanup Logs Post-Level Cleanup Automatic Revision Trimming Lightweight & Secure

安装:

  1. Upload the plugin ZIP via Plugins → Add New → Upload Plugin
  2. Click Install Now then Activate Plugin
  3. Navigate to Revision Cleaner → Settings to configure your retention rules and optional schedule
  4. Go to Revision Cleaner (Dashboard) to run an analysis and cleanup
  5. Check Revision Cleaner → Cleanup Logs to review cleanup history

屏幕截图:

  • Analysis results with revision preview list
  • Settings — Global limit, per-post-type limits, scheduled cleanup with hour picker and per-type frequencies, email notifications, and smart trigger configuration
  • Cleanup Logs page with aggregate totals, paginated history, and trigger badges
  • Post editor meta box showing revision count and per-post cleanup button
  • Revision count column in the Posts list table

升级注意事项:

1.1.0 Adds per-post-type cleanup frequencies, a preferred run hour for scheduled cleanup, and automated email notifications after each automated run. No database schema changes. Existing settings are fully preserved. Re-save your settings after upgrading to apply the new schedule options. 1.0.0 Initial release.

常见问题:

Is it safe to delete revisions?

Yes. WordPress revisions are historical snapshots of your content. Deleting old ones does not affect your published posts, pages, drafts, or any live content in any way. The plugin always shows you a full preview before any deletion occurs.

Which post types does this plugin cover?

All post types that support revisions — not just public ones. This includes Posts, Pages, Custom Post Types with revision support, and built-in WordPress types like Reusable Blocks (wp_block), Full Site Editing Templates (wp_template), Template Parts (wp_template_part), and Navigation menus (wp_navigation).

Will revisions be automatically managed going forward?

Yes, in two ways. First, the plugin trims excess revisions automatically every time a post is saved, enforcing your configured limits in real time. Second, if you enable Scheduled Cleanup or Smart Trigger Mode, periodic full-site cleanups run automatically.

What is the difference between the global limit and a per-post-type limit?

The global limit applies to all post types by default. Per-post-type limits override the global setting for specific types — for example, keep 10 revisions for Posts but only 3 for Pages, and use the global default for everything else. Leave a per-post-type field blank to fall back to the global limit.

What does "Delete Older Than" do?

During any cleanup run, revisions created more than the configured number of days ago will also be deleted, in addition to any that exceed the count-based limit. Set to 0 to disable age-based deletion entirely.

What are auto-drafts?

Auto-drafts are temporary copies WordPress creates automatically while you write a post. They accumulate over time and are safe to remove. Enable the "Remove Auto-Drafts" option in Settings to include them in cleanup runs.

Can I undo a cleanup?

No. Deletion is permanent. Always use the Analyze step to review exactly what will be deleted before running a cleanup.

What is the Preferred Run Hour setting?

When a scheduled cleanup is enabled, the first event will be anchored to the next occurrence of your chosen hour (in the site's local timezone). After that, the cleanup repeats at the configured frequency. Choosing an off-peak hour (for example, 02:00 at night) helps avoid running the cleanup during busy traffic windows. Note that WP-Cron is page-load driven, so the actual fire time may be a few minutes later than the target hour if no page load occurs exactly then.

What do Per-Post-Type Frequencies do?

Each post type can have an independent cleanup schedule. "Use Default" follows the global frequency. "Daily", "Weekly", or "Monthly" override it for that type only. "Disabled" excludes that type from scheduled cleanup entirely — it will only be cleaned manually or via Smart Trigger. When a per-type frequency is shorter than the global frequency, the cron fires at the shorter interval automatically.

Will I receive emails for every cleanup run?

No. Emails are sent only for Scheduled and Smart trigger runs, not for manual cleanup runs (since you are already watching the results in the browser). You can disable email notifications entirely from the Settings page.

What is Smart Trigger Mode?

Smart Trigger Mode watches two thresholds: total revision count and estimated revision table size. When either threshold is exceeded, a cleanup runs automatically in the background on a page load — without you needing to do anything. Every such run is logged in the Cleanup Logs page, and an email summary is sent if notifications are enabled.

What is Scheduled Cleanup?

Scheduled Cleanup uses WordPress's built-in WP-Cron to run a full cleanup automatically at your chosen frequency (daily, weekly, or monthly). It applies the same retention rules as a manual cleanup. Every scheduled run is logged, and an email summary is sent if notifications are enabled.

What trigger types appear in the Cleanup Logs?

Three: Manual (you clicked Run Cleanup), Scheduled (WP-Cron fired), and Smart (a threshold was exceeded automatically).

Does this affect site performance?

No. The plugin has zero frontend footprint — no scripts or styles are loaded for visitors. Admin operations only run during manual cleanup actions, scheduled cron events, or the lightweight smart trigger check on non-admin page loads.

Is the Revision Count column shown for custom post types?

The revision count column is added to all post type list tables that support revisions, including custom post types.

Where is the per-post cleanup button?

In the post editor sidebar. Open any post or page in the editor, look for the "Revisions" meta box in the sidebar, and you will see the current revision count, the active retention limit, and a "Clean Revisions" button to remove excess revisions for that post only.

更新日志:

1.1.0 1.0.0