Skip to content

Instantly share code, notes, and snippets.

@tbleckert
Created April 9, 2013 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbleckert/5344388 to your computer and use it in GitHub Desktop.
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.
/* 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