X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FMessageBlobStore.php;h=90ad24192db35075c39624e0d6375c167634afab;hb=8ae056613d8fcf9f1d34c0c3241d0731a7ec0f5e;hp=279898c7f8c40ab023fe6066f5f3ed784bc09c72;hpb=58cb1f824ac75c3b58ba19d1e88c1b38f9dc1fab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/MessageBlobStore.php b/includes/cache/MessageBlobStore.php index 279898c7f8..90ad24192d 100644 --- a/includes/cache/MessageBlobStore.php +++ b/includes/cache/MessageBlobStore.php @@ -165,7 +165,7 @@ class MessageBlobStore implements LoggerAwareInterface { $cache->set( $cacheKey, $blob, // Add part of a day to TTL to avoid all modules expiring at once $cache::TTL_WEEK + mt_rand( 0, $cache::TTL_DAY ), - Database::getCacheSetOptions( wfGetDB( DB_SLAVE ) ) + Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) ) ); return $blob; } @@ -179,7 +179,7 @@ class MessageBlobStore implements LoggerAwareInterface { public function updateMessage( $key ) { $moduleNames = $this->getResourceLoader()->getModulesByMessage( $key ); foreach ( $moduleNames as $moduleName ) { - // Uses a holdoff to account for database slave lag (for MessageCache) + // Uses a holdoff to account for database replica DB lag (for MessageCache) $this->wanCache->touchCheckKey( $this->wanCache->makeKey( __CLASS__, $moduleName ) ); } }