Merge "Change "slave" => "replica DB" in /includes"
[lhc/web/wiklou.git] / includes / MediaWiki.php
index e67a9b5..77a1969 100644 (file)
@@ -582,7 +582,7 @@ class MediaWiki {
 
                // Avoid letting a few seconds of replica DB lag cause a month of stale data. This logic is
                // also intimately related to the value of $wgCdnReboundPurgeDelay.
-               if ( $factory->laggedSlaveUsed() ) {
+               if ( $factory->laggedReplicaUsed() ) {
                        $maxAge = $config->get( 'CdnMaxageLagged' );
                        $context->getOutput()->lowerCdnMaxage( $maxAge );
                        $request->response()->header( "X-Database-Lagged: true" );