X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=a6a0c75b548c3c31edd8a4edbf92bf2ab29d1e3b;hb=ca8aa5a6a621852f0a8ba58df7f2d9a73f4a6764;hp=b9e5d2f2c18d147b73b8449ba96f0ded63d111f5;hpb=74bc2fc1eb77ac7f2fb80f0bcfe43f1261fff5f6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index b9e5d2f2c1..a6a0c75b54 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -7965,6 +7965,25 @@ $wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb'; */ $wgMaxUserDBWriteDuration = false; +/** + * Mapping of event channels to EventRelayer configuration. + * + * By setting up a PubSub system (like Kafka) and enabling a corresponding EventRelayer class + * that uses it, MediaWiki can broadcast events to all subscribers. Certain features like WAN + * cache purging and CDN cache purging will emit events to this system. Appropriate listers can + * subscribe to the channel and take actions based on the events. For example, a local daemon + * can run on each CDN cache node and perfom local purges based on the URL purge channel events. + * + * The 'default' channel is for all channels without an explicit entry here. + * + * @since 1.27 + */ +$wgEventRelayerConfig = array( + 'default' => array( + 'class' => 'EventRelayerNull', + ) +); + /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker