WordPress – Disable Autosave and Post revisions.

WordPress has annoying feature of saving the posts and revisions every ‘n’ seconds. Fact is I never type the content directly into TinyMCE while posting a post. I just type it in notepad on my computer and copy and paste it into the editor. Still I had to do some previewing and correctons like font changing, highlighting etc. Meantime WordPress saves this post with seperate ids in the database.

After some time the dabase will bloat up with many unnecessary data rows. This slows down the database performance.

So I have decided to disable these two ‘Autosave’ and ‘Post revision’ features.

To DISABLE ‘Post revisions’:

1. Login into your web panel.
2. Go to your wordpress blog directory.
3. You will find a file ‘wp-config.php’.
4. Open it and scroll down completely. You will see ‘?>’ as last line.
5. Before that last line copy this line of code and paste it there.

define(’WP_POST_REVISIONS’, false);

6. Save the file.

To DISABLE ‘Autosave’:

1. Login into your web panel.
2. Go to your wordpress blog directory.
3. You will find a file ‘wp-settings.php’.
4. Find these two lines:

if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
 define( ‘AUTOSAVE_INTERVAL’, 60 );

5. Change the time in there. 60 is in seconds. Change it to: (I selected 1800 seconds because I don’t want WordPress to autosave anywhere with in 30 minutes.

if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
 define( ‘AUTOSAVE_INTERVAL’, 1800 );

6. Save the file.

That’s it!

Related Posts:

  • No Related Posts

4 comments

  1. Hari says:

    Is there any ways to update a wordpress blog automatically by giving a feed of another wordpress blog?

    I mean i am having the xml feed link of another blog and i want it to upload in my blog so that my blog gets automatically updated whenever the feed gets updated.

    Pls mail me your reply as i may forget that i was here. Thanks.

  2. [...] 和 Disable-autosave 原创文章如转载,请注明出处:转载自:番茄芝 [...]

  3. Nikhil says:

    Read this post to disable this feature completely

    http://dkgadget.com/disable-autosave-posts-pages-wordpress/

Leave a Reply

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

*


*