Add caching to ResourceLoaderWikiModule::preloadTitleInfo()
commit0852a000a5555a85ac5ec7759b73dc655771a3d2
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Sep 2016 08:28:23 +0000 (2 01:28 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 20 Oct 2016 20:54:11 +0000 (20 20:54 +0000)
tree917be73662e8935deccada422a8c348743ad7631
parentb2cec6c5928e8e1b417c0855ce8e5560e2e089e1
Add caching to ResourceLoaderWikiModule::preloadTitleInfo()

This is one of the top three DB queries showing up in xenon
reverse flamegraph profiling.

It works via a per-wiki check key that is bumped whenever
someone changes a .js or .css page on that wiki.

Change-Id: I73f419558864ba3403b4601a098f6aaf84a3e7c1
includes/MovePage.php
includes/Title.php
includes/page/WikiPage.php
includes/resourceloader/ResourceLoaderWikiModule.php
tests/phpunit/includes/resourceloader/ResourceLoaderWikiModuleTest.php