Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WP Config Optimal

Default WP Config with caching and disabled Updates

<?php
/**
 * Custom WordPress configurations on "wp-config.php" file.
 *
 * This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
 * For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
 * Created using {@link https://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
 *
 * @package WordPress
 * @generator GenerateWP.com
 */


/* MySQL settings */
define( 'DB_NAME',     'database_name_here' );
define( 'DB_USER',     'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST',     'localhost' );
define( 'DB_CHARSET',  'utf8mb4' );


/* MySQL database table prefix. */
$table_prefix = 'wp_';


/* Authentication Unique Keys and Salts. */
define('AUTH_KEY',         'I;DT*[c]v(T[eU_D$DD_Q=:iimT8b8.c>*Tf|.k~0U-/A.az|/hvBx+~++]>spo+');
define('SECURE_AUTH_KEY',  'AKKA(?J?,PKTL[w(rz~EaUa[V[+CZ;LsP|%h@Coy6@}WMU<%Un{fW?hozbY9%8`g');
define('LOGGED_IN_KEY',    ' }y!|6#EP8L$6Gl$9a)OJpq#4|rbTa|]Mj<}0^[f_voJodVMWt!Aa--T.1@$0G0B');
define('NONCE_KEY',        '8(PYS!,YZ30}C.bxzffM){:H(?/nK9C_k.s8ce]<Y/M|0x9q4vU|qonhz#ZV`MK1');
define('AUTH_SALT',        '/XjudY+h ~-y]/~hl9|-FX[-7#lN)D1lM{H&[email protected]{.m4:AVYwsYuR4%A[');
define('SECURE_AUTH_SALT', '}?8[F(;Y%H3z<DI-f|3DwJot7p@a*(<+MmuHU}go6Z`:S%UE_02kdYs(xIoL:-E1');
define('LOGGED_IN_SALT',   'W35),G8mK$F*+,Y3Ozy((fwO-+pZK$[v/a*< 6=B%x|R)(Ly[E{PQQ:V.=p,mUK|');
define('NONCE_SALT',       'Dz5Miu=[UcO=IRJ/r):}E*)g7Bgva-WEHaAh~An+g}Nc6C-Czy{/|y}+}$$UeRJL');


/* SSL */
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );


/* Specify maximum number of Revisions. */
define( 'WP_POST_REVISIONS', '10' );
/* Media Trash. */
define( 'MEDIA_TRASH', false );


/* Multisite. */
define( 'WP_ALLOW_MULTISITE', false );


/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '64M' );


/* WordPress Cache */
define( 'WP_CACHE', true );


/* Compression */
define( 'COMPRESS_CSS',        true );
define( 'COMPRESS_SCRIPTS',    true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP',        true );


/* Updates */
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'DISALLOW_FILE_MODS', true );
define( 'DISALLOW_FILE_EDIT', true );


/* Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/* Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');