OutputPage: Reduce getTitleInfo() calls (improve preloading)
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 20 Oct 2016 21:43:57 +0000 (22:43 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 20 Oct 2016 21:59:23 +0000 (21:59 +0000)
commit458d37f205c1160bfd0225384277b66cacef12fe
treea0fdadca4608b84719654914485954da29cc286a
parent0852a000a5555a85ac5ec7759b73dc655771a3d2
OutputPage: Reduce getTitleInfo() calls (improve preloading)

* Remove filter between $moduleStyles and preloadTitleInfo().
  Previously, this was filtering out wiki modules created by
  gadgets and extensions. Still causing a couple of direct queries
  from getTitleInfo().

* Store __METHOD__ in $fname outside getWithSetCallback.
  This way queries are logged as either getTitleInfo or preloadTitleInfo.
  This regressed in 0852a000a5, after which the latter was logged
  as "::{closure}".

Change-Id: I454e43f43f8ad3270b86f4cfdbd68192c305cc07
includes/OutputPage.php
includes/resourceloader/ResourceLoaderWikiModule.php