[WordPress] 外掛分享: Takahiro Revision Cleanup

首頁 › 外掛目錄 › Takahiro Revision Cleanup
WordPress 外掛 Takahiro Revision Cleanup 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
—
尚無評分
39 天前
最後更新
—
問題解決
WordPress 5.9+ PHP 8.1+ v1.5.0 上架:2026-06-23

內容簡介

Takahiro Revision Cleanup 外掛專為清理 WordPress 中的文章修訂版而設計,能有效減少資料庫負擔,提升網站效能。它提供清晰的修訂版預覽,並安全地刪除不需要的版本,確保資料完整性。

【主要功能】
• 顯示修訂版總數及儲存空間估算
• 預覽將被刪除的修訂版
• 按文章類型選擇性刪除修訂版
• 一鍵連續刪除大量修訂版
• 僅優化指定資料表,無需全庫優化
• 安全的刪除流程,避免資料遺失

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Takahiro Revision Cleanup」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress saves a full copy of a post every time you update it. Over months or years of editing, these copies — revisions — pile up quietly in the wp_posts table. You never see them in the post list, but they still take up database rows, slow down backups, and add weight to every migration.
Takahiro Revision Cleanup shows you exactly how many revisions exist, lets you preview what will be removed before you commit, and deletes them safely through WordPress’s own APIs. It’s a modern, actively maintained replacement for older tools such as Better Delete Revision, which was removed from the WordPress.org directory in 2022 for security issues.
See before you delete
The dashboard shows the total revision count, an estimated storage size, and a lifetime counter of everything you’ve removed so far. A paginated preview list lets you check exactly which revisions belong to which posts before running a deletion. Nothing is hidden, and published content never appears in the list.
Delete by post type, not just “everything”
Some sites only want to clean up old blog posts and leave pages untouched. Others need to target a specific custom post type. This plugin breaks revisions down by post type, including orphaned revisions whose parent post no longer exists, and lets you delete each group independently or clear everything in one pass.
Built for large sites
Deleting tens of thousands of revisions in a single PHP request is how most cleanup tools time out. Version 1.3.0 adds one-click continuous deletion: press the button once, and the plugin works through revisions in batches of 200 via AJAX, with a live progress bar so you can watch it happen. If JavaScript is unavailable, it falls back to standard form submissions automatically.
Database housekeeping, without touching the whole database
After a large deletion, wp_posts and wp_postmeta can be left with unused space. The plugin runs CHECK TABLE and OPTIMIZE TABLE on just those two tables, not a blanket optimization of your entire database.
Cleans up correctly, not just quickly
Deletion goes through WordPress’s native wp_delete_post_revision() function, so associated post meta and term relationships are cleaned up the way WordPress expects, rather than through a raw SQL DELETE that can leave orphaned data behind. A compatibility fix is also included for a known NextGEN Gallery issue during batch deletes.
Security
Revision cleanup is a destructive, irreversible database operation, so this was built with that in mind from the start:

WordPress nonces plus a separate per-user form token on every destructive action
Capability checks (manage_options by default, filterable via tnrc_required_capability)
Rate limiting: a 30-second cooldown between destructive operations per user
A strict allowlist restricting CHECK/OPTIMIZE to wp_posts and wp_postmeta only
A 2,000-revision cap per request, with a warning if more remain
Prepared SQL statements and escaped output throughout
An audit hook (tnrc_security_event) for logging or monitoring integrations

What it doesn’t do
This plugin focuses on one job: reviewing and deleting revisions safely. It doesn’t include page caching, image optimization, or general cleanup of transients, spam comments, or orphaned options. If you want a single plugin that handles everything, a broader optimization suite may suit you better. If you want to see what’s in your revisions before removing them, and trust that the removal won’t touch anything else, that’s what this plugin is for.

延伸相關外掛

文章
Filter
Mastodon