Disable or limit Post revisions in wordpress : Speed up your blog

 

I am not a Guy who take immediate action just to avoid any future problem and I am sure that you are just like me grey Disable or limit Post revisions in wordpress : Speed up your blog Well first of all nice to meet you.

After starting my blog I have never checked what the heck is going in my database and due to that my blog speed…..well you can imagine that.  Anyway like any other newbie, I called my hosting service i.e. Hostgator and said something which I was not suppose to say….but the best thing about hostgator….they have awesome customer care service.

They explained me that I never optimised my database but they are not ready to fix as this is not under their service. So I had to fix it. After doing some reasearch on my database, I found that handling blog’s database is much more easy than the one which I am  handling daily at my office grey Disable or limit Post revisions in wordpress : Speed up your blog

What is Post revisions in WordPress :

Have you ever seen anything like this ?? of course you did..right??

grey Disable or limit Post revisions in wordpress : Speed up your blog

Post revisions in wordpress

Post revisions in WordPress has any and every page or post which you create and it helps you to undo if you did any mistake ….looks like cool and useful…well it is useful but you got to limit it otherwise it is going to slow your database and so do your website or blog speed.

As a starter we never thought about it as that time we have only 10 or 20 revisions but after some time it will become nightmare for us. So it is recommended to either limit or disable it.

grey Disable or limit Post revisions in wordpress : Speed up your blog

Disable or limit Post revisions in WordPress: Must do one of these

1.Limit Post revisions in WordPress: 

Now its time to head to your c-panel and check what is happening with your database….are you ready???? Okay let’s do it… follow the step to limit Post revisions in WordPress:

Don’t worry we are going to add only few lines in your wp-config.php file to change WP_POST_REVISIONS

Step 1: Log in to your C-panel, I hope you already know how to log in C-panel ??

Step 2: Search for files section in your c-panel and then click on file manager.

Step 3: In the pop up window, check “Show Hidden Files (dotfiles) ” option and then click on “Go

Step 4: Well congratulation, you are in your database, Now search for a file name wp-config.php make sure that you have selected public_html in left pane: 

Step 5: Found wp-config.php ?? Good remember this file because you are going to use it very often if you want to go ahead in blogging with WordPress, anyway right-click on it and select edit option…once again select “edit” from pop up window.

Step 6: Now first copy the entire code and placed into a text editor like notepad just in case you messed up with wp-config.php, at least you have back up to undo the mistakes…..right?

Step 7: Now search for  @package WordPress by using find key (ctrl + f) from you keyboard. Found it?? Good………. probably it will look like this:

* @package WordPress
*/

// ** MySQL settings – You can get this info from your web host ** //

Step 8: Replace the above code with  this one :

* @package WordPress
*/
define(‘WP_POST_REVISIONS’, 3);

// ** MySQL settings – You can get this info from your web host ** //

Step 9: In the above code, you can change the “number” of revisions to 2, 4, 5 or anything, its totally up to you. Click on “save changes” and you are done.

From now only 3 or the value which you set, is the number of your Post revisions in WordPress.

2.Disable Post revisions in WordPress: 

Now if you are like me who don’t want to have any Post revisions in WordPress, you can simply do by following all above steps which we just discussed but this time there is bit of change in the codes, Add below code in wp-config.php to disable Post revisions in WordPress.

* @package WordPress
*/

define(‘WP_POST_REVISIONS’, false);

// ** MySQL settings – You can get this info from your web host ** //

Have anything to ask or add ??

As always, I know you guys are going to add to this list which is great as it helps me and others to know more. Please feel free to add and ask. Simply leave a comment/response and I would love to hear and answer them.

Get More Tips Like This: 

Now if you enjoyed reading this, it may be chance that you’d like to join our email list so that we can send more tips and tricks like this directly to you.

It’s totally free and going to take only 1 minute.  Click here to join us for free

Join Us To Learn New things Everyday

  • Tips And Tricks About Social Media
  • Tips About Blogging And Wordpress
  • Computer And Internet Tips

Lets Make Unbeatable Group Together

You can also subscribe to our tips and tricks by Email. Enter Your Email in below form.

Also do not forget to share this article with your friends, simply click on Share button and you are done.

Lets be friend on  Facebook  , Google Plus and twitter so that you can get our each post.

Have a Great Day 

Regardsgrey Disable or limit Post revisions in wordpress : Speed up your blog

Vaibhav Singh

Founder of Online world | Knowledge and marketing  

Enter Your Email And Do Not Miss Single Tips:

 
Vaibhav Singh

Vaibhav Singh

Vaibhav Singh is founder of Stop Us If You Can. He is Electronics Engineer by education and System Automation Engineer by profession. His passion about Computer and Web Technology drive him to blogging. Connect with Vaibhav on Facebook, Google + and on Twitter

You may also like...

22 Responses

  1. Kaley says:

    Hurrah! After all I got a webpage from where I can truly obtain helpful data regarding
    my study and knowledge.

  2. Michael says:

    I delight in, result in I discovered just what I used to be taking a look for. You have ended my four day long hunt! God Bless you man. Have a nice day. Bye

  3. Davis says:

    Liked it :)

  4. Lewis says:

    Tremendous things here. I’m very glad to peer your article.
    Thank you a lot and I am having a look ahead to
    contact you. Will you please drop me a e-mail?

  5. Adams says:

    Great Info :) Thanks for sharing

  6. Jullian says:

    Thanks for a marvelous posting! I really enjoyed reading it, you are a great author.I will make sure
    to bookmark your blog and will often come back from now on.
    I want to encourage that you continue your great job, have a nice afternoon!

  7. James says:

    Hi Vaibhav,

    Great beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog website? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear concept.

    Thanks.

    • Vaibhav says:

      Hi James,

      You can subscribe by email or simply by sign-up, I am a bit confused about what you are looking for????? Can you please be more clear on this.

      Anyway Your welcome.

  8. Nathan says:

    Hi Vaibhav,

    Once Again great post, couldn’t stop myself and this one is my comment on your website. Hope it would get approaved.

    Thanks for thia article.

  9. This is kind of good information. Yet not add this in my wordpress blog. But after reading this post I think I have to add this in to my blog. Thanks Vaibhav Singh :)

  10. Vaibhav says:

    Hi Kyle,

    Welcome to Online World and Glad you liked it. Hope to see you again

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge

Join Us To Learn New things Everyday

  • Tips And Tricks About Social Media
  • Tips About Blogging And Wordpress
  • Computer And Internet Tips

Lets Make Unbeatable Group Together

Optimization WordPress Plugins & Solutions by W3 EDGE
%d bloggers like this: