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!

Author: Radhika (c)
http://www.webmasters-central.com/




Related Posts

  • No Related Posts Found