wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof dfb754cbc6 resourceloader: Improve titleInfo docs and simplify title key
* Document the structure of the in-process $titleInfo cache.
  Specifically, specify that it is not the value from getTitleInfo(),
  but rather a container for zero or more versions of such values.
  The reason this is fragmented is because ResourceLoaderContext
  is a parameter to most methods and as such, makes everything
  variable. Tracked as T99107.

* Make various bits easier to understand by consistently refering
  to the container keys as "batchKey", and referring to the internal
  keys as "titleKey".

* Centralise title key logic by moving to private method.

* Replace the internal creation of titleKey to be based on LinkTarget
  with plain namespace IDs and db keys, instead of invoking the
  expensive getPrefixedTitle function which involves quite a lot
  of overhead (TitleCodec, GenderCache, Database, Language,
  LocalisationCache, ..).

Change-Id: I701e5156ef7815a0e36caefae5871524eff3f688
2018-04-10 19:44:40 +01:00
..
templates resourceloader: Add support for delivering templates 2014-10-29 19:31:16 +00:00
DerivativeResourceLoaderContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
MessageBlobStoreTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderClientHtmlTest.php resourceloader: Replace ClientHtml 'target' param with 'options' array 2018-03-27 18:17:43 -07:00
ResourceLoaderContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderFileModuleTest.php resourceloader: Include lessVars in FileModule definition summary 2017-07-27 03:02:09 +00:00
ResourceLoaderImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderImageTest.php Use fallback languages in ResourceLoaderImage 2018-04-01 20:41:01 +01:00
ResourceLoaderModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderOOUIImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderSkinModuleTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderStartUpModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderTest.php resourceloader: Simplify load.mock.php by removing includes dependency 2018-03-06 15:59:13 -08:00
ResourceLoaderWikiModuleTest.php resourceloader: Improve titleInfo docs and simplify title key 2018-04-10 19:44:40 +01:00