Use the code PERFMATTERS for 10% off!

How to Change Autosave Interval in WordPress

WordPress by default automatically saves a draft every 60 seconds (1 minute). There are reasons why you might want to change this. You could decrease it so not to ever lose anything. But we prefer to increase it so that your browser doesn’t “hang” as much, and this also results in fewer writes to the database.

Change Autosave Interval

We built in a few different autosave intervals from which you can choose from:

  • 1 minute (default)
  • 2 minutes
  • 3 minutes
  • 4 minutes
  • 5 minutes

We recommend 5 minutes, and that is what we use on all of our sites.

Change WordPress autosave interval with perfmatters plugin
Change WordPress autosave interval with perfmatters plugin


If you get a warning saying that AUTOSAVE_INTERVAL is already enabled somewhere else on your site, that is most likely due to one of the following reasons:

  • You are already using this feature in another plugin, such as WP Rocket. You only need to enable the feature in one or the other, but not both.
  • You have the following code already defined in your wp-config.php file. If so, you need to remove it.
define('AUTOSAVE_INTERVAL', 300); // seconds

Was this article helpful?

Related Articles