Server IP : 104.21.14.48 / Your IP : 3.145.152.223 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/object-cache-pro/ |
Upload File : |
<?php defined('ABSPATH') || exit; spl_autoload_register(function ($fqcn) { if (strpos($fqcn, 'RedisCachePro\\') === 0) { require_once str_replace(['\\', 'RedisCachePro/'], ['/', __DIR__ . '/src/'], $fqcn) . '.php'; } }); (function ($config) { if (defined('WP_REDIS_CONFIG') || empty($config)) { return; } $config = json_decode((string) $config, true); $error = json_last_error(); if ($error !== JSON_ERROR_NONE || ! is_array($config)) { error_log(sprintf( 'objectcache.warning: Unable to decode `OBJECTCACHE_CONFIG` environment variable (%s)', json_last_error_msg() )); return; } $array_replace_recursive = function ($current, $override) use (&$array_replace_recursive) { foreach ($override as $key => $value) { if (array_key_exists($key, $current) && is_array($current[$key]) && $current[$key] !== array_values($current[$key])) { $current[$key] = $array_replace_recursive($current[$key], $value); } else { $current[$key] = $value; } } return $current; }; $array_merge_recursive = function ($current, $merge) use (&$array_merge_recursive) { foreach ($merge as $key => $value) { if (! array_key_exists($key, $current) || ! is_array($current[$key])) { $current[$key] = $value; } elseif ($current[$key] === array_values($current[$key])) { $current[$key] = array_merge($current[$key], (array) $value); } else { $current[$key] = $array_merge_recursive($current[$key], $value); } } return $current; }; if (defined('OBJECTCACHE_OVERRIDE')) { $config = $array_replace_recursive($config, OBJECTCACHE_OVERRIDE); } elseif (defined('OBJECTCACHE_MERGE')) { $config = $array_merge_recursive($config, OBJECTCACHE_MERGE); } define('WP_REDIS_CONFIG', $config); })(getenv('OBJECTCACHE_CONFIG'));