How To Limit or Disable The Post Revisions In WordPress..!

by  $ivateja (223) on July 1, 2010   |   1 Comment | 10,916 views


Most of us are not have much idea about the Post Revisions, If we are writing any article in wordpress by default it will saves the post content after some time, this is called post rivision.  But though we post the article the rivisions will stay as it is in our database.

For example if you write 300 articles almost extra 300 post rivisions are added into your database, this means when ever you backup your database you will get including your post rivisions.  In fact there is no use of postrivisions, in fact if the post rivisions are more the site performance will also gets decreases.

so when ever you are going to take backup you can use,

DELETE FROM wp_posts WHERE post_type = "revision";

We can also disable or limit these post revisions, just open wp-config.php and add this line and save the file..,

define(‘WP_POST_REVISIONS’, FALSE);
 
define(‘WP_POST_REVISIONS’, 3);

First one is for disable and second is for limit…, hope you enjoy the article.


You May Also Like



Get Updates:
Enter your email :
     
    For getting updates directly to your mobile inbox Click Here



Comments

One Response to “How To Limit or Disable The Post Revisions In WordPress..!”
  1. Awesome post! It really helped me a lot! Thanks for sharing it.

Speak Your Mind

Tell us what you're thinking, If you want a pic to show with your comment, go get a gravatar !






Search:


strPro Plus WP Theme [$71.36]

Buy this Highly adsense Optimised
Wordpress Theme - Increase Your
Adsnese Income Up To 200%



Contact us: strkgroups@gmail.com
Contributers:

» sivateja
» Jaswanth

[ Total of 309 posts by Feb 09, 2012 ]

wordpress visitors