5 use Phpfastcache\Drivers\Redis\Config;
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', \Psr\Log\LogLevel::WARNING);
42 $server =
$config->redis_servers[0];
Configuration for redis fastcache driver.
static fromElggConfig(string $namespace, \Elgg\Config $config)
Factory to return a config object to be used when starting a driver.
if($who_can_change_language==='nobody') elseif($who_can_change_language==='admin_only' &&!elgg_is_admin_logged_in()) $options
$config
Advanced site settings, debugging section.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.