How to disable wordpress autosave

June 25, 2017

In Wordpress, while you are editing a post, it stores automatically the content of the post at regular intervals.
This can be a useful in case you close the browser, or it is closed unexpectedly.

However all these saved copies of the post are stored in the database using a valuable space that can be used for other posts.

So if you don't want Wordpress to keep storing these copies of posts, add the following line to the wp_config.php file:

define('AUTOSAVE_INTERVAL', 60*60*60*24*365); // autosave 1x per year