HowTo – WordPress Adjusting The AutoSave Interval TO A REASONABLE TIME

Filed under: Wordpress Tips

wordpress-logoOne of the most annoying default features of WordPress is the Auto Save.

I don’t think I have ever had to rely on it once since it was introduced and the worst part is if you are in the middle of spell checking your page when an auto save fires off it will turn off the spell check.

That wouldn’t be so bad if it was set to a reasonable level but the default setting is 60 seconds.

Not being able to type 110 words per minute that means it is constantly going off while I work.

What is even more annoying is they didn’t put a setting in the dashboard so you can adjust the interval or turn it off completely.

To set autosave to a reasonable level you need to place a line in your wp-config.php file.

define('AUTOSAVE_INTERVAL', 160 );  // seconds

Its not a difficult thing to do but its a pain in the neck to have to do it in a config file instead of in the dashboard.

While you are at it you should turn your Revisions off or install a plugin that will allow you to adjust the number of revisions you want in your dashboard.

define('WP_POST_REVISIONS', false );

or to set the number
define('WP_POST_REVISIONS', 3);

As I am writing this page I think Autosave has fired off about 10 times … I dont think it uses the 60 second interval correctly.

So I need to update my config file right now …