home/beautybuzzbeyond/public_html/wp-content/object-cache.php 0000644 00000004523 14717522237 0020537 0 ustar 00 $method,
'result' => $result,
'backtrace' => debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 16 ),
] );
return in_array( $method, [ 'mget', 'exec' ] )
? []
: false;
}
} catch ( Throwable $th ) {
$report( [
'error' => $th->getMessage(),
'type' => get_class( $th ),
'method' => $method,
'backtrace' => debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 16 ),
] );
}
return $result ?? false;
}
(function ($config) {
if (defined('WP_REDIS_CONFIG') || empty($config)) {
return;
}
$config = json_decode((string) $config, true, 3);
$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()
));
}
$config['tracer'] = 'gd_cache_wrapper';
if ( defined( 'MWP_OBJECT_CACHE_NON_PERSISTENT_GROUPS' ) && is_array( MWP_OBJECT_CACHE_NON_PERSISTENT_GROUPS ) ) {
$config['non_persistent_groups'] = MWP_OBJECT_CACHE_NON_PERSISTENT_GROUPS;
}
define('WP_REDIS_CONFIG', $config);
})(getenv('OBJECTCACHE_CONFIG'));
include WP_CONTENT_DIR . '/mu-plugins/gd-system-plugin/object-cache/object-cache-pro.php';