X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FDefaultSettings.php;h=a6a0c75b548c3c31edd8a4edbf92bf2ab29d1e3b;hb=ca8aa5a6a621852f0a8ba58df7f2d9a73f4a6764;hp=6a41152f834d06945498c5eff452680871aa9959;hpb=4ae1a85772db4bbf6f0003ed5fc6857c0601a8f3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 6a41152f83..a6a0c75b54 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -904,7 +904,8 @@ $wgMediaHandlers = array( /** * Plugins for page content model handling. - * Each entry in the array maps a model id to a class name. + * Each entry in the array maps a model id to a class name or callback + * that creates an instance of the appropriate ContentHandler subclass. * * @since 1.21 */ @@ -7964,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