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_log(
'Multiple Redis servers are not supported. Only the first server will be used. Please update the configuration in elgg-config/settings.php',
'warning');
43 $server = $config->redis_servers[0];
Configuration for redis fastcache driver.
$config
Advanced site settings, debugging section.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
static fromElggConfig(string $namespace,\Elgg\Config $config)
Factory to return a config object to be used when starting a driver.