« redis.php

( version controlblameraw text )



<?php
# WARNING: This file is publicly viewable on the web. Do not put private data here.

#
# This for PRODUCTION.
#
# Effective load order:
# - multiversion
# - mediawiki/DefaultSettings.php
# - wmf-config/*Services.php
# - wmf-config/etcd.php
# - wmf-config/InitialiseSettings.php
# - wmf-config/redis.php [THIS FILE]
#
# Included from: wmf-config/CommonSettings.php.
#

foreach ( [ 'eqiad', 'codfw' ] as $dc ) {
$wgObjectCaches["redis_{$dc}"] = [
'class' => 'RedisBagOStuff',
'servers' => [ "/var/run/nutcracker/redis_{$dc}.sock" ],
'password' => $wmgRedisPassword,
'loggroup' => 'redis',
'reportDupes' => false
];
}

$wgObjectCaches['redis_master'] = $wgObjectCaches["redis_{$wmfMasterDatacenter}"];
$wgObjectCaches['redis_local'] = $wgObjectCaches["redis_{$wmfDatacenter}"];