Top

Daily Tip: Customize WordPress Autosave Interval and Post Revisions in WP-Config

April 27, 2010

Did you know that you can change the settings for post revisions and WordPress’ autosaving of posts within your wp-config.php file? Who really needs a million post revisions anyway? This will help you to cut down on how much is stored in your database. Below are examples for editing your wp-config.php file to change the number of post revisions stored in your database or completely disable them, as well as change how often your posts autosave.

define('AUTOSAVE_INTERVAL', 120 );  // seconds (default is 60)
define('WP_POST_REVISIONS', false ); // disable post revisions
define('WP_POST_REVISIONS', 3); // alter number of post revisions kept.

Source: Dave Redfern

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.