MediaWiki  1.23.12

Emit a recent change notification via Redis Pub/SubIf the feed URI contains a path component, it will be used to generate a channel name by stripping the leading slash and replacing any remaining slashes with '.'. If no path component is present, the channel is set to 'rc'. If the URI contains a query string, its parameters will be parsed as RedisConnectionPool options.

$wgRCFeeds['redis'] = array( 'formatter' => 'JSONRCFeedFormatter', 'uri' => "redis://$wgDBname", );

public function send( array $feed, $line ) {
$parsed = wfParseUrl( $feed['uri'] );
$server = $parsed['host'];
$options = array( 'serializer' => 'none' );
$channel = 'rc';
if ( isset( $parsed['port'] ) ) {
$server .= ":{$parsed['port']}";
if ( isset( $parsed['query'] ) ) {
parse_str( $parsed['query'], $options );
if ( isset( $parsed['pass'] ) ) {
$options['password'] = $parsed['pass'];
if ( isset( $parsed['path'] ) ) {
$channel = str_replace( '/', '.', ltrim( $parsed['path'], '/' ) );
$conn = $pool->getConnection( $server );
if ( $conn !== false ) {
$conn->publish( $channel, $line );
return true;
} else {
return false;
static singleton(array $options)
Definition: RedisConnectionPool.php:115
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Interface for RC feed engines, which send formatted notifications.
Definition: RCFeedEngine.php:27
Definition: RedisPubSubFeedEngine.php:39
send(array $feed, $line)
Definition: RedisPubSubFeedEngine.php:44
wfParseUrl( $url)
parse_url() work-alike, but non-broken.
Definition: GlobalFunctions.php:802
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition: hooks.txt:1530
Definition: cdb.php:57