[WordPress] 外掛分享: Revision Buster

首頁外掛目錄 › Revision Buster
WordPress 外掛 Revision Buster 的封面圖片
全新外掛
安裝啟用
尚無評分
303 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.4+ v1.0.0 上架:2025-01-04

內容簡介

總結:這個 WordPress 外掛提供了定時清理歷史修訂、全域清理和編輯設定等功能,同時支援自訂清理排程和快取管理提升效能。

問題與答案:
1. 這個外掛提供了哪些清理功能?
- 選擇性修訂清理:可選擇特定文章或頁面刪除修訂版本。
- 全域清理:一鍵刪除所有文章和頁面的修訂版本。
- 修訂保留:為每篇文章或頁面配置要保留的修訂次數。
- 定時清理:設定自動清理排程(每小時、每天、每週、每月、或每年)。
- 快取管理:有效地快取文章和頁面以優化效能。
- 自訂 Cron 排程:支援月度和年度的 Cron 排程。

2. 在管理員頁面可以做哪些操作?
- 修訂清理設定:管理要保留的修訂次數並設定自動清理排程。
- 單一文章/頁面清理:選擇特定文章或頁面並刪除其修訂版本。
- 全域清理:刪除所有文章和頁面的修訂版本。

3. 什麼是自動清理?如何確保資料庫優化?
- 可以在不同的間隔(每小時、每天、每週、每月、或每年)安排清理任務,以確保資料庫保持最佳狀態。

4. 這個外掛如何管理快取?
- 外掛使用 WordPress 一時性資料來快取所有文章和頁面,以提升在處理大量文章時的效能。

5. 這個外掛的系統需求是什麼?
- 需要 WordPress 5.0 或更高版本。
- 需要 PHP 7.4 或更高版本。

開發者團隊

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

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

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon