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



Comments
Got something to say?