Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created June 5, 2020 13:54
Show Gist options
  • Save eksiscloud/3101b8dd335e39486dfd03cc062ea1d4 to your computer and use it in GitHub Desktop.
Save eksiscloud/3101b8dd335e39486dfd03cc062ea1d4 to your computer and use it in GitHub Desktop.
Redis and wp-config.php
//define('WP_CACHE', true);
$_SERVER['HTTPS'] = 'on';
//define('DISABLE_WP_CRON', true);
define('WP_REDIS_DATABASE', 1);
$redis_server = array( 'host' => '127.0.0.1', 'port' => 6379, );
define('WP_REDIS_MAXTTL', 900);
define('WP_CACHE_KEY_SALT', 'eksis.dev');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment