resourceloader: Omit getDirection() ResourceLoaderContext hash
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Nov 2015 21:11:19 +0000 (21:11 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Nov 2015 21:38:33 +0000 (21:38 +0000)
commitb632900f4da2d0f15a053c86a213232b1249488e
tree209a7d3ad4c49912b0c99c43776ba6fff684e4ff
parente02252879ee44579f3fafae4cbc1147e74e6a372
resourceloader: Omit getDirection() ResourceLoaderContext hash

The direction is derived from the language code, which is included
already. The method was added for convenience to consuming code,
but including it in the cache key seems pointless.

Main rationale here is runtime performance. getDirection() incurs
Language::factory() and Language::getDir() which require loading
of LCStore files.

Change-Id: I397a1c483203ec2c4903046c9494cae1c9480f8c
includes/resourceloader/ResourceLoaderContext.php
tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php