Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to Change the WordPress Auto-Save Interval

This guide shows you how to make WordPress save your drafts more or less often.

WordPress2 min read11 steps

What is auto-save?

When you write a post, WordPress saves your work by itself. This is called auto-save. It helps if your browser closes or your internet drops. By default, WordPress saves about every 60 seconds.

You can change that time. You do this by adding one line to a file called wp-config.php. This file holds the main settings of your site. It lives in the main folder of your WordPress install.

Warning: a mistake in this file can make your site show an error. Make a copy of the file first. Save the copy on your computer.

Steps

  1. Log in to your client area at https://secure.hostvento.com/clientarea.php and open cPanel. cPanel is the control panel for your hosting.
  2. Click File Manager.
  3. Open the folder where WordPress is installed. For the main site, this is often public_html.
  4. Right-click wp-config.php and choose Download to keep a backup.
  5. Right-click it again and choose Edit.
  6. Find the line that says /* That's all, stop editing! */.
  7. Add this line just above it:
    define( 'AUTOSAVE_INTERVAL', 120 );
  8. Click Save Changes.

This line sets the time to 120 seconds, which is two minutes. The number is in seconds. Use 30 for faster saves or 300 for slower ones.

Check it

  1. Open a new post in WordPress.
  2. Type some text and wait.
  3. Watch for the "Saved" message near the top of the editor.
Tip: Very short times can slow down a busy site. This is because each save talks to the server. A time of 60 seconds or more is a good balance.

If you cannot edit the file, or the site shows an error after your change, restore your backup copy. You can also open a ticket with Hostvento support at https://secure.hostvento.com/submitticket.php.

Quick recap

  • Auto-save keeps copies of your draft as you type.
  • Add define( 'AUTOSAVE_INTERVAL', 120 ); to wp-config.php.
  • The number is in seconds.
  • Back up the file before you edit it.