Created
April 9, 2013 09:35
-
-
Save tbleckert/5344388 to your computer and use it in GitHub Desktop.
Put this script in your wp-config.php to prevent Wordpress from filling up your database with revisions. A super simple way to optimize the performance of your Wordpress installation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Revisions, behave yourselves */ | |
define('AUTOSAVE_INTERVAL', 120 ); // Default value is 60 seconds. | |
define('WP_POST_REVISIONS', 3); // Number of revisions to save. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment