Skip to content

Instantly share code, notes, and snippets.

@skipshean
Last active January 6, 2020 17:55
Show Gist options
  • Save skipshean/589ce2f4bb9039b0e54ed93529f6f84a to your computer and use it in GitHub Desktop.
Save skipshean/589ce2f4bb9039b0e54ed93529f6f84a to your computer and use it in GitHub Desktop.
WordPress config optimizations, place in wp-config.php file for optimal performance
// other general wordpress optimizations, place in wp-config.php file before "That's all, stop editing!" line.
define('WP_DEBUG', false);
define('WP_POST_REVISIONS', 5);
define('AUTOSAVE_INTERVAL', 600);
define( 'EMPTY_TRASH_DAYS', 3 );
define('WP_MEMORY_LIMIT','96M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );
// optional, remove this comment and the // below if you want to limit external requests in admin screens
// define( 'WP_HTTP_BLOCK_EXTERNAL', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment