WordPress Post Revisions
When you want to speed up your blog and save database there is one important factor mostly bloggers are not aware of that feature which is called WordPress Post Revisions and they should be better delete. When you update any post, WordPress save the copy of your post which is called autosave in other words WordPress enable revisions. In this post, I am going to show you how you can edit this option and limit it to few. Follow the directions as mention below on how to disable revisions and remember there is no other alternative of this.
Got to your host Cpanel and open file manager. Look for filename wp-config.php which is located in your WordPress root directory.
Now open it with the editor and insert the simple code. The default autosave interval will change from 60 seconds (1 minute) to 300 seconds (5 minutes).
//disable WP Post Revisions
define('AUTOSAVE_INTERVAL', 300); // seconds
Please remember it should be inserted before the ‘ABSPATH’ if not, it is not going to work.
Now save wp-config.php file and you are done! This revisions option near to your Publish button will no longer show.
After doing this I faced another issue which was my past revisions saved in my database but I delete all previous revisions. To delete them all you have to go to your PHPMyAdmin and run this SQL Query.
Tip: DELETE FROM wp-posts Where post_type = “revision”
So this is a simple trick to get rid of this problem enable or disable revisions for WordPress. WordPress revision control is important but I also suggest that you should do as you like because it depends on your profession if you area handling someone else blog maybe the owner wants to keep the WordPress Post Revisions but in the end, it is important to optimize database after deleting revisions.
Don’t forget to give your comments and subscribe to Sizlomedia in future I will post more articles on WordPress.
Very Simple Step by Step Guide of WordPress post revisions