- [ 'page', 'revision', 'text' ],
- [ 'page_title', 'page_latest', 'old_id', 'old_text', 'old_flags' ],
- array_merge( $conds, [ 'page_len <= ' . intval( $wgMaxMsgCacheEntrySize ) ] ),
+ $revQuery['tables'],
+ $revQuery['fields'],
+ array_merge( $conds, [
+ 'page_len <= ' . intval( $wgMaxMsgCacheEntrySize ),
+ 'page_latest = rev_id' // get the latest revision only
+ ] ),