Only load latest revision in MessageCache::loadFromDB
authordaniel <dkinzler@wikimedia.org>
Fri, 22 Mar 2019 12:26:21 +0000 (13:26 +0100)
committerdaniel <dkinzler@wikimedia.org>
Fri, 22 Mar 2019 14:44:14 +0000 (15:44 +0100)
commitf8dc579261dcea5744cb909785821b8996c8d312
tree660992367ff1a35b49c801bc322541661d1696e7
parent8fc39d3c382c3ccba7adbad795c41dfa13ac014e
Only load latest revision in MessageCache::loadFromDB

In Id044b8dcd7c, we lost a condition that ensured that the cache would
be populated with the latest revision. Now it was being populated with
all revisions, with a random one winning.

Bug: T218918
Change-Id: I1a47356ea35f0abf35bb1a3489d0d3442a3400a5
includes/cache/MessageCache.php
tests/phpunit/includes/cache/MessageCacheTest.php