How to Adjust Autosave Interval of Your WordPress Blog

Autosave function which has been integrated into WordPress plays massive role for WordPress bloggers. It is because, although it is not often, it can help us to recover back the articles that we have written in the case where our internet browser crashed.

Your Internet Browser Crashed?

However, the default autosave interval may not suit with our style and speed of writing the content of our WordPress articles. For those who can type pretty fast, the default interval may not sufficient as if the internet browser crashes, the possibly of losing huge amount of content that we have written is higher as compared to those who have slower pace.

Therefore, for this post, I would like to share quick and simple tutorial on how to adjust the default autosave interval of WordPress blog – to make it to be either faster or slower. It depends on you and your style.

What you should do now?

First, we need to head to your WordPress file in your hosting and find the wp-config.php. If there is only your WordPress blog in your hosting account, the file will be located in the public html folder.

After you have found the file, open the file as you will have to make simple little tweak in the file. However, if you are worry that the process does not end up well as expected, it would be great if you can make back up of your WordPress blog.

Then, you have to find below code which located at the few last code lines of the file.

/* That's all, stop editing! Happy blogging. */

When you find the above line, you just need to add below code right before the line.

define('AUTOSAVE_INTERVAL', 300 );  // in seconds

By putting the above code, the autosave interval will be at the rate of 300 seconds per autosave. From there, you can adjust the interval by adjusting the 300 – either to increase or decrease it, depends on your suitability.

Does it work great?

Now, you have set up your own autosave interval which suits you and your WordPress blog. I would love to know how will this tutorial affect you – Is it major or minor? And feel free to share any opinion and suggestions that will improve this quick and simple tutorial on how to adjust the default autosave interval of our WordPress blog.

17 Responses to How to Adjust Autosave Interval of Your WordPress Blog

  1. Thanks for the helpful tip! It can be helpful if your browser crashes while you’re working, and your latest edits haven’t been saved.

    But be sure not to set it too low, because that can really slow things down.

  2. And, shared via Twitter!

  3. Thanks for the tutorial! Personally, I think there should be an option in the WP Dashboard to adjust this! I love autosave, but for me, I think it actually does it too often. I find myself waiting on it sometimes. haha

  4. Yea, it slows it down a lot and you really want to avoid that if you are on a shared host.

  5. There is not an option because not to many would want to change it. And if something does it wrong, it can be disastrous as it does take a lot of resources.

  6. Mikkel says:

    Oh, really nice! Just edited it, on my blog. I didn’t knew where this was in the WordPress sourcecode, thanks for sharing!

  7. Jason says:

    Thanks for this. I wondered about this issue the other day. Half way in to writing a post my browser started locking up. I was afraid I was going to lose it all and was able to copy and paste it in to Notepad. Thanks again.

  8. Helmi Asyraf (admin) says:

    Glad to see you over here, Mikkel.

    No problem. I am happy that it can help you. It would be great if you can share this tutorial with others.


  9. Helmi Asyraf (admin) says:

    Glad to know that this tutorial has helped you to solve your problem.

    It would be great if you can share this tutorial with others.


  10. I think the auto save feature is great. Also, make sure to keep a backup copy before publishing your posts.

  11. ariff says:

    It’s annoying sometimes when the autosave is working but then autosave is something that ‘saves’ our lives when something bad happens while writing a post.

  12. ariff says:

    Hopefully there will be an option for this in WordPress 3

  13. Mike says:

    Wow this is a nice post. I love the autosave feature. It saved me a couple time when my computer battery died.

  14. Kushal Chap says:

    Shared this using twitter

  15. Mike says:

    It seems like there is a way to adjust everything in wordpress. It is a very flexible platform. It makes me wonder why more people don’t use it

  16. This is what I was looking for! Today when I was composing a post, there was error establishing database connection; I had to wait and keep waiting till the host was up again or else I would have lost much of the post.
    Thanks, this works!

Leave a Reply

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