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.

99 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]

  31. whoah this blog is great i really like studying your posts.
    Stay up the good work! You know, lots of persons are looking around for this
    information, you could help them greatly.

  32. Have you ever thought about writing an e-book or guest authoring on other blogs?
    I have a blog centered on the same subjects you discuss and
    would really like to have you share some stories/information. I know my
    readers would appreciate your work. If you are even remotely interested, feel
    free to shoot me an e mail. games ps4 allenferguson games ps4

  33. Dzięki za zaleceń dotyczących naprawy kredytu na temat tego niesamowitego blogu. Rzeczy i chciałbym rada ludziom byłoby, aby zrezygnować z rzeczywistej mentalności że będą teraz i wypłać później. Like a as be a} społeczeństwo {my|my wszyscy|my wszyscy|wielu z nas|większość z nas|większość ludzi} ma tendencję do {robienia tego|robienia tamtego|próbowania tego|zdarzyć się|powtórz to} dla wielu {rzeczy|problemów|czynników}. Obejmuje to {wakacje|wakacje|wypady|wyjazdy wakacyjne|wycieczki|rodzinne wakacje}, meble, {i|jak również|a także|wraz z|oprócz|plus} przedmiotów {chcemy|chcielibyśmy|życzymy|chcielibyśmy|naprawdę chcielibyśmy to mieć}. Jednak {musisz|musisz|powinieneś|powinieneś chcieć|wskazane jest, aby|musisz} oddzielić {swoje|swoje|to|twoje obecne|swoje|osoby} chcą {od wszystkich|z potrzeb|z}. {Kiedy jesteś|Kiedy jesteś|Kiedy jesteś|Jeśli jesteś|Tak długo, jak jesteś|Kiedy} pracujesz, aby {poprawić swój kredyt|poprawić swoją zdolność kredytową|zwiększyć swój kredyt|zwiększyć swój kredyt|podnieś swój ranking kredytowy|popraw swój kredyt} wynik {musisz zrobić|zrobić|faktycznie potrzebujesz|naprawdę musisz} dokonać kilku {poświęceń|kompromisów}. Na przykład {możesz|możesz|możesz|możesz|będziesz mógł|| możesz|prawdopodobnie możesz} robić zakupy online {aby zaoszczędzić pieniądze|aby zaoszczędzić pieniądze|aby zaoszczędzić} lub {możesz przejść do|może się zwrócić|może odwiedzić|może obejrzeć|może sprawdzić|może kliknąć} używane {sklepy|sklepy|detaliści|sprzedawcy|punkty sprzedaży|dostawcy} zamiast {drogie|drogie|drogie|drogie|drogie|drogich} domów towarowych {dla|w odniesieniu do|dotyczących|odnoszących się do|przeznaczonych dla|do zdobycia} odzieży {strzykawki insulinowe 1ml|strzykawki tuberkulinowe|strzykawki|strzykawka|strzykawki insulinowe|strzykawki do insuliny|strzykawki trzyczęściowe tuberkulinowe|strzykawka tuberkulinowa|strzykawka insulinowa|strzykawka do insuliny|strzykawka trzyczęściowe tuberkulinowa}.

  34. I am in fact grateful to the holder of this web site who has shared this impressive post at at this time.
    games ps4 185413490784 games ps4

  35. [url=http://sildenafilandtadalafil.com/]lowest price viagra uk[/url] [url=http://optcialis.com/]generic tadalafil cheap[/url] [url=http://benicarolmesartan.com/]benicar brand name[/url] [url=http://fpspharmacy.com/]canadian pharmacy[/url] [url=http://cialisetab.com/]cialis 50[/url] [url=http://idrgstore.com/]chloromycetin 500 mg capsule[/url] [url=http://tadalacialis.com/]generic tadalafil no prescription[/url] [url=http://viagraspro.com/]cost viagra per pill[/url] [url=http://tamsulosinflomax.com/]flomax for kidney stones in females[/url] [url=http://supcialis.com/]cialis for sale mexico[/url]

  36. [url=https://aaessay.com/]format of writing research paper[/url] [url=https://xwritingservice.com/]help on writing a book[/url] [url=https://wrtsrv.com/]college essay volunteering[/url]

  37. Nice post. I was checking continuously this blog and
    I am impressed! Extremely helpful information specially the
    last part 🙂 I care for such info a lot. I was looking for this particular
    information for a long time. Thank you and best of luck.

  38. [url=http://cialisedtr.com/]priligy online pharmacy[/url] [url=http://pharmacyflex.com/]online pharmacy pain relief[/url] [url=http://viagraremm.com/]over the counter generic sildenafil[/url] [url=http://viagraptab.com/]how to order viagra in india[/url] [url=http://cialistadalafilonline.com/]how much is cialis generic[/url] [url=http://viagrabrp.com/]discount viagra online[/url] [url=http://zzmeds.com/]clomid 25mg for sale[/url] [url=http://viagrasildenafilpill.com/]cialis 20 mg price[/url] [url=http://ttbbshop.com/]retin a gel prescription[/url] [url=http://buyviagratab.com/]viagra price per pill[/url]

  39. I do not know whether it’s just me or if everybody else experiencing issues with your website.
    It seems like some of the text on your posts are running off the screen. Can someone else please comment and let me
    know if this is happening to them too? This could be a problem with my internet browser
    because I’ve had this happen previously. Thank you

  40. I loved as much as you will receive carried out right here.

    The sketch is tasteful, your authored material stylish.

    nonetheless, you command get bought an shakiness over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike.

  41. I love your blog.. very nice colors & theme. Did you create
    this website yourself or did you hire someone to do it for you?
    Plz answer back as I’m looking to design my
    own blog and would like to know where u got
    this from. thank you

  42. The road seemed to stretch on endlessly before us, but Alexis assured me that our journey was near an end. We’d turn before long into thick woods and travel through narrow, winding roads until we reached her family’s cabin. I had no choice but to trust her as GPS had given out nearly 20 minutes ago.

    “There’s good wifi and okay reception at the cabin,” she’d told me, “but you can’t get there unless you know the way.”

    So here I was, driving alone in the middle of god knows where with a girl who was my student just a couple of weeks ago. Her and her four best friends had been together from first grade all the way through high school and now they had graduated with very different futures ahead of them. They had decided to kick off “the best summer ever” with a week long stay at Alexis’s family cabin. Alexis and I were heading up before everyone else, the four other girls and four guys.

  43. I got this web page from my pal who shared with me
    regarding this website and now this time I am visiting this website
    and reading very informative content at this place. asmr 0mniartist

Leave a Reply

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