This article was originally published a few years ago. The information, tips and techniques explained may outdated. Examples shown on this page may no longer work. Please consider this when viewing the below content.
Firstly it is open to debate, as to whether or not too many Wordpress post revisions being stored in the database can slow down your site, however I find that it certainly keeps it simpler to reduce the number of revisions that are stored.After all, who really has the time to sift through the long list of revisions trying to find that one change that you didn't mean to make. I know that having the revisions available can save some headaches, but I certainly prefer to keep the list shorter.So how do you do it? Well firstly decide how many revisions you would like to keep for the website. I like a starting point of 4 stored revisions. You might prefer to increase this, that's up to you.So here is the before shot:
and here it is afterwards:
So how to implement this post revisions change?Add the following code to your wp-config.php file, at around line 31, at the start of your code.[php]define('WP_POST_REVISIONS', 4); //max 4 revisions per post[/php]