5 use Phpfastcache\Drivers\Memcached\Config;
30 foreach (
$config->memcache_servers as $server) {
32 'host' =>
'127.0.0.1',
35 'saslPassword' =>
false,
38 $servers[] = array_merge($server_config, $server);
41 $opt_prefix = (string)
$config->memcache_namespace_prefix;
42 $opt_prefix .= $namespace;
46 'useStaticItemCaching' =>
true,
47 'itemDetailedDate' =>
true,
48 'optPrefix' => $opt_prefix,
Configuration for memcache(d) fastcache driver.
static fromElggConfig(string $namespace, \Elgg\Config $config)
Factory to return a config object to be used when starting a driver.
$config
Advanced site settings, debugging section.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.