Set mCache in the second MessageCache::loadFromDatabase() caller
The member variable is needed in the next lines, which previously just used the array with "LATEST" set and would be seen as invalid and discarded next time. Bug: T157033 Change-Id: I5b84b1ae4a9c7b710ee452c61d7d9d6076ec9e6a
This commit is contained in:
parent
7c0b549301
commit
44ac0de8d1
1 changed files with 2 additions and 1 deletions
3
includes/cache/MessageCache.php
vendored
3
includes/cache/MessageCache.php
vendored
|
|
@ -584,7 +584,8 @@ class MessageCache {
|
|||
return;
|
||||
}
|
||||
// Load the messages from the master DB to avoid race conditions
|
||||
$this->loadFromDB( $code, self::FOR_UPDATE );
|
||||
$cache = $this->loadFromDB( $code, self::FOR_UPDATE );
|
||||
$this->mCache[$code] = $cache;
|
||||
// Load the process cache values and set the per-title cache keys
|
||||
$page = WikiPage::factory( Title::makeTitle( NS_MEDIAWIKI, $title ) );
|
||||
$page->loadPageData( $page::READ_LATEST );
|
||||
|
|
|
|||
Loading…
Reference in a new issue