Post Autosave Interval in WordPress

  • Avinash
  • 0
  • Jul 14, 2011
  • Web Development

While writing a post in a wordpress admin side, wordpress will automatically save your posts as a revision using AJAX. By default this interval is set to 60 seconds.

You can modify this time using wp-config.php.

You can increase this interval for lower numbers of revisions, or you can decrease this duration to make sure that you will not loose any of the content.

Place below line to your wp-config.php file.

define('AUTOSAVE_INTERVAL', 160 ); // Increased number = Less revisions
define('AUTOSAVE_INTERVAL', 160 );  // Increased number = Less revisions

OR

define('AUTOSAVE_INTERVAL', 30 ); // Decreased number = More revisions
define('AUTOSAVE_INTERVAL', 30 );  // Decreased number = More revisions

Note: It is good to save revisions, but interval should be reasonlable otherwise it will be overhead for your database.

Related Posts

Written by Avinash

Avinash Zala is leading various projects which deals with the various technology involved with the web. A combination of perfect technical and management skills. Avinash would like to chat with you and convert your imagination into the working system. You can get in touch with him on Facebook and Twitter.

View all posts by: