X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FMessageBlobStore.php;h=d0f67294a7a6a61dce2d06e8c4fd518cc94ce45b;hb=e3b5ed406ec4d04b2744d9a377446ead8eb0ca50;hp=457648a0d6e8cdca5050ce48a63086976b29a3af;hpb=8763879da660e66038686da0fa63125988589db9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/MessageBlobStore.php b/includes/resourceloader/MessageBlobStore.php index 457648a0d6..d0f67294a7 100644 --- a/includes/resourceloader/MessageBlobStore.php +++ b/includes/resourceloader/MessageBlobStore.php @@ -177,7 +177,7 @@ class MessageBlobStore implements LoggerAwareInterface { // - This global check key invalidates message blobs for all modules for all wikis // in cache contexts (e.g. languages, skins). Setting a hold-off on this key could // cause a cache stampede since no values would be stored for several seconds. - $cache->touchCheckKey( $cache->makeGlobalKey( __CLASS__ ), $cache::HOLDOFF_NONE ); + $cache->touchCheckKey( $cache->makeGlobalKey( __CLASS__ ), $cache::HOLDOFF_TTL_NONE ); } /** @@ -224,7 +224,7 @@ class MessageBlobStore implements LoggerAwareInterface { } } - $json = FormatJson::encode( (object)$messages ); + $json = FormatJson::encode( (object)$messages, false, FormatJson::UTF8_OK ); // @codeCoverageIgnoreStart if ( $json === false ) { $this->logger->warning( 'Failed to encode message blob for {module} ({lang})', [