How to Change 'WordPress Auto Save' Interval?

by Aditya on January 3, 2009

 How to Change 'Wordpress Auto Save' Interval?Developers added ‘auto save’ feature to WordPress in its version 2.1 and ever since then, it has become a permanent fixture in coming WordPress versions (even WordPress 2.7) . By default, wordpress ‘auto save’ saves your pages and posts after every 60 seconds, that is to say, after every 1 minute. This ’1 minute time’ is not suited to most of the bloggers who prefer an early ‘auto-save’ or ‘an auto-save’ after the normal time interval of 1 minute. Some think that it is quite imposssible to do so, but the good news is that it is possible and quite easy.

You can change the ‘auto-save’ time of wordpress blogs by your own time limit. This task invloves changin the configuration of AUTOSAVE_INTERVAL constant and replacing the given time interval by your time. The ‘AUTOSAVE_INTERVAL’ constant can be added in the wp-config.php configuration file, which located in the root directory of your blog. Use the following syntax to add or modify the auto-save interval:

define(’AUTOSAVE_INTERVAL’, 600);

The above code will instruct wordpress to auto save posts/pages after every 600 seconds that is, 10 minutes. This value can be changed to your own value which will be used to determine the ‘auto-save interval’ by the wordpress.

So, what you think?

Did you like this tutorial and found it helpful or you feel it was just a waste of time? Express your freaking mind to me by leaving a comment.

Liked my ravings ?

Subscribe to my tech-ravings.

{ 8 comments }

Saba January 5, 2009 at 12:03 pm

thanks..it was helpful for my wordpress blog..

Shane February 9, 2009 at 3:33 pm

Very helpful!  Thank you for sharing!

Pareja July 3, 2009 at 5:01 am

Your post How to Change ‘WordPress Auto Save’ Interval? was very interesting when I found it over google on Friday by my search for auto. I have your blog now in my bookmarks and I visit your blog again, soon. Take care. Parejaspareja.es

natashaviva July 13, 2009 at 10:33 am

Thank you very much. This is very useful for my blog too: http://www.picktorrent.com

poker July 31, 2009 at 8:06 pm

Perfect!, just works awesome, and easy to do, im not a very experimented user, but with your tips, the site grows up.

Jacob Christensen August 20, 2009 at 1:15 pm

@karinhoegh (Ved ikke om denne kan hjælpe) #blogfail http://tinyurl.com/lrtmtl

Neo Forex April 6, 2010 at 10:16 pm

Aditya,
Thanks a lot. The WordPress 2.7 was killing me with the Auto SAVE. Every time I update my blog the post will lose some data due to the auto save. The problem was, the auto save was happening when I closing the window or logging off making the autosave doing half finished job.
Even WP 2.9 was giving me the same problem but to a smaller extend. Hope this will solve the problem.

-Neo

Aditya April 8, 2010 at 7:08 pm

Always a pleasure to help you Neo.

Comments on this entry are closed.

blog comments powered by Disqus

Previous post:

Next post: