ApiQueryTags: Use cached statistics instead of querying hit counts ourselves
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 5 May 2017 01:04:58 +0000 (18:04 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 5 May 2017 01:04:58 +0000 (18:04 -0700)
commit08f746478afda38fa8301c82f2ee0e5cef36aefe
treeffcbd7c147475ff77a98eac73e58114b65647b96
parent0c339a61671aae9ca99ae92cd5aadd53152306b2
ApiQueryTags: Use cached statistics instead of querying hit counts ourselves

The hit count query was quite slow. Unfortunately, it seems that we do need
tagUsageStatistics() even when hitcounts are not requested, because it
might list additional tags that aren't listed by the list*Tags() functions.
I don't know if this can happen in practice, but all the code around tags
seems to operate as if it might.

Bug: T164552
Change-Id: Ifccf7f5ac7a1220ff67a68589398cbf30aefd3ad
includes/api/ApiQueryTags.php