MessageCache: derive the hash from the cache contents
authorOri Livneh <ori@wikimedia.org>
Thu, 13 Aug 2015 04:40:49 +0000 (21:40 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 14 Aug 2015 19:49:07 +0000 (19:49 +0000)
commit6147de1182101903cf24259d61ec6ea34b907bf3
treea8f7b5a950be3a0f622328215d07e71818380ef7
parentb5eeb56f9e09777163f08be68a7b9940fef0db82
MessageCache: derive the hash from the cache contents

Follow-up for I020617d, where I got this wrong. It is probable that multiple
application servers will try to build a local cache at the same time, in which
case they will cause the cache key to thrash. It is necessary that two
application servers building a local cache from the database generate the same
hash for a given set of messages.

Change-Id: Ieeefc2094a83be9401c466bec859c1588ddfbcdf
includes/cache/MessageCache.php