From aa5be0c1e03dd70eeaa7a083088f2a0eee2b29d4 Mon Sep 17 00:00:00 2001 From: Elliott Eggleston Date: Thu, 13 Oct 2016 12:55:01 -0500 Subject: [PATCH] Only set memcache hash when saving messages to memcache Shouldn't need to change the memcache hash unless we're changing the memcache value. Bug: T144952 Change-Id: I8e5cc29bfa0372f0071914e534e0b80cc4d34286 --- includes/cache/MessageCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index f393acde06..6834ac0981 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -631,11 +631,11 @@ class MessageCache { if ( $dest === 'all' ) { $cacheKey = wfMemcKey( 'messages', $code ); $success = $this->mMemc->set( $cacheKey, $cache ); + $this->setValidationHash( $code, $cache ); } else { $success = true; } - $this->setValidationHash( $code, $cache ); $this->saveToLocalCache( $code, $cache ); return $success; -- 2.20.1