Disable/Turn off post revisions and increase post autosave interval in wordpress 2.6

 July 20, 2008 Filed Under Wordpress SEO & Plugins

Wordpress 2.6 is out and every wordpress user is busy upgrading to the latest version. I already did a review of wordpress 2.6 features here.One of the features, that I felt, should have been an optional one for the wordpress user is “Post Revisions“. 

Wordpress 2.6 has also introduced this annoying auto save feature, that automatically saves posts at regular time intervals.This would also lead to additional post revision entries in your wordpress database (wp_posts table). 
 

In notime, you would find your wordpress database bloated.In the long run, this would not only affect performance but would also lead to increased download times of your wordpress database backups.Ideally wordpress 2.6 should have provided these as optional features, making it easy to turn them off, through settings in wordpress administration. 
 

Since the option to turn them off was not there, I was just looking for a way to disable these features. I stumbled upon this cool solution.

How to turn off Post Revisions or Post auto save in wordpress 2.6?

To turn off Post Revisions in wordpress 2.6, add the following to your wp-config.php file: 
 

define(’WP_POST_REVISIONS’, false);

How to change the timing (in seconds) WordPress auto saves a post

Add this following code to wp-config.php to define post autosave as 60 seconds.This configuration will tell wordpress 2.6 to auto save a post only once in 60 seconds.If you want to specify an even higher time interval, just increase this configuration (in seconds) accordingly. 
 

define(’AUTOSAVE_INTERVAL’, 60);

How to delete existing post revisions and post autosaves?

If you have already made several posts after upgrading to wordpress 2.6, then delete the post revisions by executing the following query.But before executing any update or delete queries, it is a good idea to backup your database. 
 

DELETE FROM wp_posts WHERE post_type = “revision”;

 

Now go ahead and disable/turn off post revisions and increase post autosave interval in wordpress 2.6.

Related posts

Liked the reads? Do subscribe via reader or via Email.
Show your love by sharing this via:

StumblediggTechnoratiDelicious






All incoming search terms for this post:

wordpress - how to disable autosave in excel files for windows vista - wordpress 2.6 autosave off - wordpress 2.6 disable autosave - wordpress autosave plugin time - switch off the post revisions feature - wordpress autosaveInterval - how to autosave revisions of ms excel - wordpress turn off review 2.6 - WordPress Disable Revisions and AutoSave plug-in - wordpress disable posting - autosave wordpress - getting rid of autosave in wordpress - cache:9THYsXusDRUJ:lesterchan.net/wordpress/2008/07/17/how-to-turn-off-post-revision-in-wordpress-26/ wordpress revisions autosave - wordpress turn off autosave - wordpress 2.6 disable revisions - disable page revisions wordpress - disable post rivision wordpress - TURN OFF AUTOSAVE EXCEL - how to delete wordpress auto saved - DELETE FROM wp_posts WHERE post_type = "revision"; - wordpress autosave 2.6 - wordpress turn off email on bad links - turn off auto save wordpress 2.6 - turn off autosave wordpress -

5 Responses to “Disable/Turn off post revisions and increase post autosave interval in wordpress 2.6

  1. WordPress Revisionen & Artikelüberarbeitung abschalten. | momworx on July 26th, 2008 4:01 pm

    [...] Techblissonline [...]

  2. amudafu.de » WordPress Autosave und Revisionierung abschalten « on July 27th, 2008 11:21 am

    [...] Weg, Einträge in der wp_config von Hand tätigen. techblissonline.com schreibt, dass man in der wp_config den Eintrag define(’WP_POST_REVISIONS’, [...]

  3. Ricky Buchanan on July 30th, 2008 12:34 pm

    Have you heard anywhere of problems people have had doing this? I’m a bit wary of setting things in wp-config since I have a knack for breaking WP! But I’d very much like to get rid of the auto-save if I can because it messes up the Series Options plugin.

    Great blog, BTW. I’ve got heaps of useful info from here! Glad I found you :)

    Ricky

    Ricky Buchanan’s last blog post..iPhone Assistive Technology Round-Up

  4. techblissonline.com on July 30th, 2008 12:46 pm

    Ricky, Wordpress should have given an easier option to enable/disable it.

    But unfortunately this is the only fix available now and it is really worth doing it as otherwise you will have a lot of rows for every post.It is really ridiculous that they have introduced this feature without providing an easier option to get out of it..Rather this feature should have only been an option available to the user.

    But you can just add them anywhere in your wp-config.I have done it already and wordpress 2.6 works like a charm now.

  5. Olivier on July 30th, 2008 1:43 pm

    I would be curious to see if they will remove or allow to turn off this feature in the admin dashboard in the coming release knowing the number of people complaining about it…

    Olivier’s last blog post..ThyssenKrupp

Leave a Reply




Copyright ©2007 Techblissonline.com, All rights reserved. | Privacy Policy