mirror of
https://gh.wpcy.net/https://github.com/fairpm/server.git
synced 2026-06-19 02:53:45 +08:00
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>
13 lines
428 B
PHP
13 lines
428 B
PHP
<?php
|
|
WP_Predis\add_filters();
|
|
|
|
// Set the host from the environment variable before loading the plugin logic
|
|
if ( getenv( 'REDIS_PORT' ) && ! defined( 'WP_REDIS_PORT' ) ) {
|
|
define( 'WP_REDIS_PORT', getenv( 'REDIS_PORT' ) );
|
|
}
|
|
|
|
if ( getenv( 'REDIS_HOST' ) && ! defined( 'WP_REDIS_BACKEND_HOST' ) ) {
|
|
define( 'WP_REDIS_BACKEND_HOST', getenv( 'REDIS_HOST' ) );
|
|
}
|
|
|
|
require_once __DIR__ . '/plugins/wp-redis/object-cache.php';
|