Without this call, each user page can produce a query to get the gender
state.
Change-Id: I430c9922008cfea57b02da112087a7d52aeb4d23
$this->addOption( 'LIMIT', $limit + 1 );
$res = $this->select( __METHOD__ );
+ //Get gender information
+ if( MWNamespace::hasGenderDistinction( $params['namespace'] ) ) {
+ $users = array();
+ foreach ( $res as $row ) {
+ $users[] = $row->page_title;
+ }
+ GenderCache::singleton()->doQuery( $users, __METHOD__ );
+ $res->rewind(); //reset
+ }
+
$count = 0;
$result = $this->getResult();
foreach ( $res as $row ) {