Disable WordPress Post Revisions to Optimize Speed

If you’re a minimalist like me, you would be worried about the number of Post Revisions in your WordPress blog. Revisions are stored in your blog for genuine purpose – to let you easily find, compare, and rollback to a version. However, some users might find the sheer number of revisions stored in your database as a headache – especially if the database space is limited or the site is already struggling with slow database queries.

Additionally, keeping the blog database clean and trim makes it more manageable and portable should you need to backup or migrate to a different server.

Here’s how you can disable the number of revisions stored for a post. Additionally, I will show you how to extend the auto-save interval.

Find the wp-config.php in the root directory of your WordPress installation:

Open the file in your favorite text editor and add the two lines of code:

define('AUTOSAVE_INTERVAL', 600 ); // autosave every 600 seconds - bloghow.com
define('WP_POST_REVISIONS', false ); // disable revisions - bloghow.com

Save the file and that should disable all future revisions to your content.
Your auto-save interval will now be increased to 600 seconds, which is 10 minutes.

Having said that, you’ll still see the existing revisions that are already stored in your database. To clean them up, you can directly run this query in your database (easily via phpMyAdmin):

DELETE FROM wp_posts WHERE post_type = "revision";

You may alternatively install a plugin that can do it for you without having to manually run database queries.

Either way, this will delete all previously stored post revisions from your database. New revisions will not be stored as you’ve already made the changes in the wp-config.php file.

Got a question, ask in the comments below.

74 Comments on “Disable WordPress Post Revisions to Optimize Speed”

  1. Heya i am for the first time here. I came across this board and I to find It really helpful & it helped me out a lot.

    I’m hoping to present something again and help others
    such as you aided me.

  2. Next time I read a blog, Hopefully it does not fail me just as much as this one. After all, I know it was my choice to read, but I genuinely thought you would probably have something useful to talk about. All I hear is a bunch of crying about something you can fix if you were not too busy searching for attention. Clovis Gregory Skye

  3. Thanks for your personal marvelous posting! I truly enjoyed reading it, you might be a great author.I will ensure that I bookmark your blog and may come back
    at some point. I want to encourage that you continue your great
    posts, have a nice weekend!

  4. Hey there! I just wanted to ask if you ever have any problems with
    hackers? My last blog (wordpress) was hacked and I ended up losing a few
    months of hard work due to no data backup.
    Do you have any solutions to prevent hackers?

  5. Hey there! Someone in my Myspace group shared this site
    with us so I came to give it a look. I’m definitely enjoying the information. I’m
    book-marking and will be tweeting this to my followers!
    Wonderful blog and superb design.

  6. There was been fooling around for approximately 10 minutes and then she attempted to grab my penis. You can easily start sexual activities if you wish. But thankfully, today, the spark can be brought to return. Jen Cal Taryn

  7. Having read this I thought it was extremely informative.
    I appreciate you spending some time and energy to put this information together.
    I once again find myself spending a lot of time both reading and leaving
    comments. But so what, it was still worth it!

  8. I was very pleased to discover this website. I want to to thank you for your time for this wonderful read!! I definitely appreciated every little bit of it and I have you saved as a favorite to check out new information in your website. Merline Quinn Wit

  9. Hi my friend! I wish to say that this article is awesome, great written and come with approximately all vital infos. I would like to look more posts like this . Zorah Donn Borroff

  10. Wonderful story, reckoned we could combine a number of unrelated information, nevertheless really really worth taking a look, whoa did 1 discover about Mid East has got a lot more problerms as well Arleyne Kleon Crooks

  11. Xiao Zhan without doubt is the best of all. I hope he comes back stronger and better. May he gain enough strength and peace to sail through this rough waves of life. You gonna rock for sure Xiao Zhan. Waiting to see u at the movies. Pepita Cobb Hibbert

  12. Praise God that Emilie Grace is home with her loving parents! I learned a meaning for GPS. It stands for Grace Positioning System. Know that God is still in control as he guides you all through the journey. Elisa Fredrick Hernardo

  13. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you aided me. Lu Wilfrid Leith

  14. This truly is an incredibly awesome potent resource that you are supplying and also you just deliver it away cost-free!! I comparable to discovering internet websites that view the certain cost of offering you stunning mastering resource for zero cost. We actually dearly loved examining this web site. Be thankful! Barbi Russ Au

  15. A motivating discussion is worth comment. I do think that you
    need to publish more about this topic, it may not be a taboo matter but usually folks don’t talk about these topics.
    To the next! All the best!!

  16. That is really attention-grabbing, You’re a very skilled blogger.
    I have joined your rss feed and look forward to in quest of extra of your
    excellent post. Additionally, I have shared your site in my social networks

  17. You made some good points there. I looked on the net for additional information about the issue and found most people will go along with your views on this site. Ulrikaumeko Morlee Boelter

  18. hey there and thank you for your information ? I have certainly picked up anything new from right here. I did however expertise a few technical issues using this website, since I experienced to reload the web site a lot of times previous to I could get it to load correctly. I had been wondering if your hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and can damage your high quality score if advertising and marketing with Adwords. Anyway I am adding this RSS to my email and could look out for a lot more of your respective interesting content. Make sure you update this again very soon.. Sianna Ransom Parris

  19. After looking over a handful of the blog articles on your web site, I truly like your technique of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Please check out my web site as well and tell me your opinion. Marianne Dar Blight

  20. Mensen die niet willen wachten op iOS 6 tot de herfst kunnen hun UDID laten registreren. Op deze manier is het hoogstwaarschijnlijk maandag al mogelijk om over iOS 6 te beschikken. Voor meer info zie mijn website. Alana Marshal Goldstein

  21. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices. Iormina Simeon Schott

  22. After looking into a few of the articles on your web page, I truly appreciate your way of blogging. I bookmarked it to my bookmark site list and will be checking back soon. Take a look at my website as well and tell me what you think. Monica Boris LaMonica

  23. Bagi semua para pemain pasti diwajibkan punyai sedikit pemahaman tentang sistem akurat. Menang main game mpo slot online di web Mpo Slot Online. Sebelum taruhan anda mainkan. Jarang kali banyak pemain tidak mengayalkan hal tersebut. Hampir segala rata-rata pemain hanya menghendaki terdapatnya suatu kemujuran didalam tiap-tiap spin yang dikerjakan. Arly Paxon Kloster

  24. Great beat ! I would like to apprentice at the same time as you amend your site, how can i subscribe for a blog web site? The account aided me a appropriate deal. I had been a little bit acquainted of this your broadcast offered shiny transparent idea| Antonetta Pavel Rior

  25. I would like to express my respect for your generosity in support of those people that really want help on this subject. Your personal dedication to getting the message all over was incredibly valuable and have specifically made guys and women much like me to arrive at their objectives. Your amazing helpful useful information can mean a whole lot to me and much more to my colleagues. Thanks a lot; from all of us. Barbaraanne Freeman Ressler

  26. Hi there. I found your site by way of Google while searching for a similar matter, your website came up. It looks great. I have bookmarked it in my google bookmarks to visit then. Marcelline See Jerrold

  27. semoga setelah menerapkan cara yang di bahas ini, saya selaku BeHangat. Com bisa semakin baik untuk meningkatkan pengunjung dan lain-lain. TrimS kak. Loise Fair Easton

  28. I would use the nickname, but you could perhaps put your legal name in paren after it. I see people do versions of that from time to time, and it would solve the gender confusion problem. Mellie Dolf Dardani

  29. magnificent issues altogether, you just gained a brand new reader. What may you suggest in regards to your put up that you just made a few days in the past? Any sure? Xenia Burtie Jeth

  30. [url=https://cialisdisp.com/]cialis india online pharmacy[/url] [url=https://zmedsearch.com/]lasix 400 mg[/url] [url=https://ondansetronzofran.com/]zofran price[/url] [url=https://cialisopp.com/]tadalafil 1mg[/url] [url=https://cialisorder.com/]cialis online india[/url]

Leave a Reply

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