Although I find the Revisions option helpful in the post editor, I certainly don’t need the last 50 versions of any given post. That can quickly bloat any database. Backing up your website can be tough with a huge database. Try using these snippets to either disable post revisions or limit them to five. (Note, change the number 5 to whatever number you want.) Choose one or the other and then add it to your wp-config.php file in the root directory.
// disable post revisions define('WP_POST_REVISIONS', false); // limit five post revisions define('WP_POST_REVISIONS', 5);
Ratan Mia says
I personally hate when revisions are disabled. I write for one or two blogs that have completely disabled them and it is very frustrating. Firstly, because from time to time I will lose a connection and lose all my work. And secondly, because I am unable to refer back to previous drafts. I believe a few drafts are best and you can then periodically delete old drafts that are not necessary.
Laura Hartwig says
Great point. How do you delete old drafts that are not necessary? I didn’t know that was an option.