Skip to content

Instantly share code, notes, and snippets.

@ilearnbydoing
Created April 23, 2021 04:34
Show Gist options
  • Save ilearnbydoing/92f357c30840042d45967917d4535684 to your computer and use it in GitHub Desktop.
Save ilearnbydoing/92f357c30840042d45967917d4535684 to your computer and use it in GitHub Desktop.
OptimizeWP.in - WordPress key optimization config options
// Limit number of saved revisions to five
define( 'WP_POST_REVISIONS', 5 ); // limit number of revisions to 5
// Control how often WordPress autosaves
define( 'AUTOSAVE_INTERVAL', 160 ); // in seconds
// Empty trash every 7 days
define( 'EMPTY_TRASH_DAYS', 7 ); // empty trash weekly
// Increase memory limit to 128mb for the front-end and 256mb for wp-admin
define('WP_MEMORY_LIMIT', '128M'); // increase limit to 128M
define('WP_MAX_MEMORY_LIMIT','256M'); // increase admin limit to 256M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment