$res = $dbr->select(
[ 'page', 'revision', 'text' ],
- [ 'page_title', 'old_text', 'old_flags' ],
+ [ 'page_title', 'old_id', 'old_text', 'old_flags' ],
$smallConds,
__METHOD__ . "($code)-small"
);
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 );