Merge "Only set memcache hash when saving messages to memcache"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 15 Oct 2016 06:45:26 +0000 (06:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 15 Oct 2016 06:45:26 +0000 (06:45 +0000)
includes/cache/MessageCache.php

index f393acd..6834ac0 100644 (file)
@@ -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;