{"id":417062,"date":"2025-01-05T08:00:00","date_gmt":"2025-01-05T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/revision-buster\/"},"modified":"2025-05-20T16:31:00","modified_gmt":"2025-05-20T16:31:00","slug":"revision-buster","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/revision-buster\/","title":{"rendered":"Revision Buster"},"content":{"rendered":"<h3>Features<\/h3>\n<ul>\n<li><strong>Selective Revision Cleanup<\/strong>: Delete revisions for specific posts or pages as needed.<\/li>\n<li><strong>Global Cleanup<\/strong>: Clean up revisions for all posts and pages with a single click.<\/li>\n<li><strong>Revisions Retention<\/strong>: Customize how many revisions to retain per post or page.<\/li>\n<li><strong>Scheduled Cleanup<\/strong>: Automate cleanup tasks at intervals (hourly, daily, weekly, monthly, or yearly).<\/li>\n<li><strong>Cache Management<\/strong>: Uses transients for efficient caching of posts and pages.<\/li>\n<li><strong>Custom Cron Intervals<\/strong>: Adds monthly and yearly cleanup schedules.<\/li>\n<li><strong>Custom Post Type Support<\/strong>: Handles revisions for all registered post types (future roadmap).<\/li>\n<\/ul>\n<h3>Usage<\/h3>\n<h3>Admin Settings<\/h3>\n<ul>\n<li><strong>Revision Cleanup Settings<\/strong>: Manage revision retention rules and schedule automated cleanups.<\/li>\n<li><strong>Single Post\/Page Cleanup<\/strong>: Select individual posts or pages and delete their revisions.<\/li>\n<li><strong>Global Cleanup<\/strong>: Remove revisions for all posts and pages to free up database space.<\/li>\n<\/ul>\n<h3>Automated Cleanup<\/h3>\n<ul>\n<li>Configure intervals for automated cleanup tasks (hourly, daily, weekly, monthly, yearly).<\/li>\n<li>Ensure your database stays optimized without manual intervention.<\/li>\n<\/ul>\n<h3>Hooks and Filters<\/h3>\n<h3>Actions<\/h3>\n<ul>\n<li><code>revision_buster_run_revision_cleanup_cron<\/code>: Executes the scheduled revision cleanup.<\/li>\n<li><code>save_post<\/code> & <code>delete_post<\/code>: Automatically invalidates cached posts when updates or deletions occur.<\/li>\n<\/ul>\n<h3>Filters<\/h3>\n<ul>\n<li><code>cron_schedules<\/code>: Adds custom intervals (monthly, yearly) to WordPress cron schedules.<\/li>\n<\/ul>\n<h3>Technical Details<\/h3>\n<h3>Cache Management<\/h3>\n<ul>\n<li>Implements WordPress transients to improve performance when processing large datasets.<\/li>\n<li>Efficiently manages cached data to minimize load times during cleanup tasks.<\/li>\n<\/ul>\n<h3>Cleanup Logic<\/h3>\n<ul>\n<li>Deletes older revisions while retaining the configured number of most recent revisions.<\/li>\n<li>Utilizes batch processing for scalability on larger databases.<\/li>\n<\/ul>\n<h3>Requirements<\/h3>\n<ul>\n<li>WordPress 5.0 or higher<\/li>\n<li>PHP 7.4 or higher<\/li>\n<\/ul>\n<h3>Roadmap<\/h3>\n<ul>\n<li>Add support for custom post types.<\/li>\n<li>Enhanced UI with analytics and visual cleanup reports.<\/li>\n<li>Third-party plugin integration for backup compatibility.<\/li>\n<li>Multisite support for network-wide revision cleanup.<\/li>\n<\/ul>\n<h3>Contribution<\/h3>\n<p>We welcome your contributions! Feel free to submit issues or pull requests via the <a href=\"https:\/\/github.com\/HILAYTRIVEDI\/revision-buster\" rel=\"nofollow ugc\">GitHub repository<\/a>.<\/p>\n<h3>License<\/h3>\n<p>This plugin is open-source and licensed under the GPLv2 or later. Learn more at <a href=\"https:\/\/www.gnu.org\/licenses\/gpl-2.0.html\" rel=\"nofollow ugc\">GPL License<\/a>.<\/p>\n<h3>Acknowledgments<\/h3>\n<p>Developed by <a href=\"https:\/\/github.com\/HILAYTRIVEDI\" rel=\"nofollow ugc\">Hilay Trivedi<\/a>.<\/p>\n<p>Special thanks to the WordPress community for their continuous support and feedback.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Features<\/p>\n","protected":false},"author":65,"featured_media":336030,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Revision Buster - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Features"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-417062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/417062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=417062"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/417062\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/336030"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=417062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=417062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=417062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}