Skip to content

Commit

Permalink
move redis settings to setup.php so they are available in the admin a…
Browse files Browse the repository at this point in the history
…s well
  • Loading branch information
godbone committed Jan 11, 2019
1 parent c8f0a82 commit e428b0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@

define( 'WP_USE_THEMES', true );

// ==============
// REDIS SETTINGS
// ==============
define( 'WP_REDIS_DISABLE', (int) getenv( 'WP_REDIS_DISABLE' ) );
define( 'WP_REDIS_DB', getenv( 'WP_REDIS_DB' ) );
define( 'WP_REDIS_DATABASE', getenv( 'WP_REDIS_DB' ) );
define( 'WP_REDIS_HOST', getenv( 'WP_REDIS_HOST' ) );
define( 'WP_REDIS_PASSWORD', getenv( 'WP_REDIS_PASSWORD' ) );

// To disable redis caching, set the WP_REDIS_DISABLE env as 1.
if ( WP_REDIS_DISABLE === 1 ) {
// NO CACHING
Expand Down
9 changes: 9 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,12 @@
}

define( 'SETUP_DONE', true );

// ==============
// REDIS SETTINGS
// ==============
define( 'WP_REDIS_DISABLE', (int) getenv( 'WP_REDIS_DISABLE' ) );
define( 'WP_REDIS_DB', getenv( 'WP_REDIS_DB' ) );
define( 'WP_REDIS_DATABASE', getenv( 'WP_REDIS_DB' ) );
define( 'WP_REDIS_HOST', getenv( 'WP_REDIS_HOST' ) );
define( 'WP_REDIS_PASSWORD', getenv( 'WP_REDIS_PASSWORD' ) );

0 comments on commit e428b0d

Please sign in to comment.