Fill GenderCache for used pages in action=query&prop=fileusage
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 10 Sep 2019 17:42:58 +0000 (19:42 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 25 Sep 2019 19:41:34 +0000 (21:41 +0200)
commita8525d7201dada88f3117142fe1919d0b9b80d4e
treecbde9cc2ff354728640db9016732bd9ab4adc0c7
parentbd980451109fb588c30aa5059ddada5ea4f6492e
Fill GenderCache for used pages in action=query&prop=fileusage

Add an utility function
ApiQueryBase::executeGenderCacheFromResultWrapper

GenderCache stops working when there are more than 1000 cache missed
and returning the default value (T200238)
Fill the cache with all needed users avoids this behaviour
and it saves one query per user page.

Change-Id: I911dcb160a7b169091b9e8f66fb3908d0f2a1ba4
includes/api/ApiQueryBacklinksprop.php
includes/api/ApiQueryBase.php