Disable wordpress post revisions

WordPress being most popular blogging platform has been used by hundreds of thousands of bloggers. As we all know that WordPress is an Open Source software that is in continuous development. With every release numerous new features are added to the platform. Not every new feature is suitable for everyone and this is what is good about WordPress. You can disable most if not all of the functionalities or features that does not suite you.

Post revisions is a feature that was added in WordPress with version 2.6, it is useful for most of the bloggers. But suppose you have thousands of posts and you are hard core fan of WordPress Post Editor so you only use it to edit posts. WordPress saves copy of your posts while you edit them, by default its every 60 seconds. So suppose you create a new post and it took you 15 minutes to write it, there will be 15 revisions of the same post in your WordPress database. By the time you reach 1000 posts the number of revisions will be 15000. Though revisions may be useful for some cases but not for everyone. WordPress saves a revision of every post when ever you will make changes to it while in Drafts or after publishing.

Few drawbacks of Post Revisions are:

  • Wastes space
  • Makes db slower
  • Makes editing slower

I am sure there will be more drawback. But for me it is enough that if I am not using or do not want a feature I can disable it. I am sure you will want to disable it too until there is an absolute need for it.

Lets see how we can disable the post revisions. After installing WordPress open your wp-config.php in your favorite text editor and add the following line:
define('WP_POST_REVISIONS', false );

In case if you do not want to disable it but want to limit the number of post revisions you can change false to number of revisions you want to allow, e.g:
define('WP_POST_REVISIONS', 5);

Save the file and you are done.

Do you use post revisions? Do you know any other drawbacks of using post revisions?