Skip to content

Commit 7056761

Browse files
authored
Update composer.lock for afragen/git-updater version 12.23.1 (#100)
Signed-off-by: Mika Epstein ipstenu@halfelf.org Signed-off-by: Mika Ipstenu Epstein <ipstenu@halfelf.org>
1 parent 4090ece commit 7056761

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/object-cache.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33

44
// Set the host from the environment variable before loading the plugin logic
55
if ( getenv( 'REDIS_HOST' ) ) {
6-
define( 'WP_REDIS_BACKEND_HOST', getenv( 'REDIS_HOST' ) );
7-
define( 'WP_REDIS_PORT', getenv( 'REDIS_PORT' ) ?: 6379 );
6+
if ( ! defined( 'WP_REDIS_BACKEND_HOST' ) ) {
7+
define( 'WP_REDIS_BACKEND_HOST', getenv( 'REDIS_HOST' ) );
8+
}
9+
if ( ! defined( 'WP_REDIS_PORT' ) ) {
10+
define( 'WP_REDIS_PORT', getenv( 'REDIS_PORT' ) ?? 6379 );
11+
}
812
}
913

1014
require_once __DIR__ . '/plugins/wp-redis/object-cache.php';

0 commit comments

Comments
 (0)