X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FMessageBlobStore.php;h=5d48c03dfc175adad0cdf7d3e44d9de18e45b399;hb=2e288bdccfae41cfa19d26b3e0dd980072250775;hp=279898c7f8c40ab023fe6066f5f3ed784bc09c72;hpb=40a628a501fc05bb00e834fe359ca4061925f320;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/MessageBlobStore.php b/includes/cache/MessageBlobStore.php index 279898c7f8..5d48c03dfc 100644 --- a/includes/cache/MessageBlobStore.php +++ b/includes/cache/MessageBlobStore.php @@ -110,9 +110,6 @@ class MessageBlobStore implements LoggerAwareInterface { foreach ( $modules as $name => $module ) { $key = $cacheKeys[$name]; if ( !isset( $result[$key] ) || $curTTLs[$key] === null || $curTTLs[$key] < 0 ) { - $this->logger->info( 'Message blob cache-miss for {module}', - [ 'module' => $name, 'cacheKey' => $key ] - ); $blobs[$name] = $this->recacheMessageBlob( $key, $module, $lang ); } else { // Use unexpired cache @@ -165,7 +162,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 +176,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 ) ); } }