25 if (!$config->redis || empty($config->redis_servers) || !is_array($config->redis_servers)) {
30 'useStaticItemCaching' =>
true,
31 'itemDetailedDate' =>
true,
32 'optPrefix' => $namespace,
34 if (!empty($config->redis_options) && is_array($config->redis_options)) {
38 if (
count($config->redis_servers) > 1) {
39 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');
42 $server = $config->redis_servers[0];
Configuration for redis fastcache driver.
$config
Advanced site settings, debugging section.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
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.