How To Limit or Disable The Post Revisions In WordPress..!
|
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:
| |











Awesome post! It really helped me a lot! Thanks for sharing it.