Skip to content

Commit ad941b3

Browse files
authored
Update composer dependencies and refine Redis configuration (#101)
Signed-off-by: Mika Ipstenu Epstein ipstenu@halfelf.org Signed-off-by: Mika Ipstenu Epstein <ipstenu@halfelf.org> Signed-off-by: Ipstenu (Mika Epstein) <Ipstenu@users.noreply.github.com>
1 parent 7056761 commit ad941b3

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"johnpbloch/wordpress": "^6.8",
4242
"pantheon-systems/wp-redis": "^1.4",
4343
"humanmade/wp-redis-predis-client": "^0.2.0",
44-
"afragen/git-updater": "^12.22",
44+
"afragen/git-updater": "^12.23",
4545
"fairpm/fair-parent-theme": "~1.0.1",
4646
"fairpm/fair-beacon": "dev-main",
4747
"humanmade/aws-ses-wp-mail": "dev-master",

composer.lock

Lines changed: 1 addition & 1 deletion
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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
WP_Predis\add_filters();
33

44
// Set the host from the environment variable before loading the plugin logic
5-
if ( getenv( 'REDIS_HOST' ) ) {
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-
}
5+
if ( getenv( 'REDIS_PORT' ) && ! defined( 'WP_REDIS_PORT' ) ) {
6+
define( 'WP_REDIS_PORT', getenv( 'REDIS_PORT' ) );
7+
}
8+
9+
if ( getenv( 'REDIS_HOST' ) && ! defined( 'WP_REDIS_BACKEND_HOST' ) ) {
10+
define( 'WP_REDIS_BACKEND_HOST', getenv( 'REDIS_HOST' ) );
1211
}
1312

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

0 commit comments

Comments
 (0)