25 if (!$config->redis || empty($config->redis_servers) || !is_array($config->redis_servers)) {
30 'preventCacheSlams' =>
true,
31 'useStaticItemCaching' =>
true,
32 'itemDetailedDate' =>
true,
33 'optPrefix' => $namespace,
35 if (!empty($config->redis_options) && is_array($config->redis_options)) {
39 if (
count($config->redis_servers) > 1) {
40 elgg_deprecated_notice(
"Multiple Redis servers are not supported. Only the first server will be used. Please update the configuration in elgg-config/settings.php",
'4.2');
43 $server = $config->redis_servers[0];
44 if (!array_key_exists(
'host',
$server)) {
46 elgg_deprecated_notice(
"Redis server({$server[0]}) configuration format has been changed. Please update the configuration in elgg-config/settings.php",
'4.2');
Configuration for redis fastcache driver.
elgg_deprecated_notice(string $msg, string $dep_version)
Log a notice about deprecated use of a function, view, etc.
$config
Advanced site settings, debugging section.
static fromElggConfig(string $namespace,\Elgg\Config $config)
Factory to return a config object to be used when starting a driver.