X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FMessageCache.php;h=d254d3d53678becd9b0c7e0a20e04ecdafb642a0;hb=b1fae297981bf99cb17e424cc640ef75e98175d5;hp=62fab5fc50b6da8d56281067261e9a0d25eaed62;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 62fab5fc50..d254d3d536 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -302,7 +302,7 @@ class MessageCache { $where[] = 'global cache is expired'; $staleCache = $cache; } elseif ( $hashVolatile ) { - # DB results are slave lag prone until the holdoff TTL passes. + # DB results are replica DB lag prone until the holdoff TTL passes. # By then, updates should be reflected in loadFromDBWithLock(). # One thread renerates the cache while others use old values. $where[] = 'global cache is expired/volatile'; @@ -442,7 +442,7 @@ class MessageCache { function loadFromDB( $code, $mode = null ) { global $wgMaxMsgCacheEntrySize, $wgLanguageCode, $wgAdaptiveMessageCache; - $dbr = wfGetDB( ( $mode == self::FOR_UPDATE ) ? DB_MASTER : DB_SLAVE ); + $dbr = wfGetDB( ( $mode == self::FOR_UPDATE ) ? DB_MASTER : DB_REPLICA ); $cache = []; @@ -564,7 +564,7 @@ class MessageCache { } // Mark this cache as definitely "latest" (non-volatile) so - // load() calls do try to refresh the cache with slave data + // load() calls do try to refresh the cache with replica DB data $this->mCache[$code]['LATEST'] = time(); // Update caches if the lock was acquired