Skip to content

Instantly share code, notes, and snippets.

@bewho
Forked from skipshean/wp-config-optimizations
Created May 14, 2017 02:47
Show Gist options
  • Save bewho/3c2ca3ea52d28f224d8b0c478a62e0d4 to your computer and use it in GitHub Desktop.
Save bewho/3c2ca3ea52d28f224d8b0c478a62e0d4 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','256M');
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
// 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