resourceloader: Include global LESS variables in LESS cache key
authorAlexia E. Smith <washuu@gmail.com>
Tue, 10 Apr 2018 22:35:49 +0000 (17:35 -0500)
committerJforrester <jforrester@wikimedia.org>
Fri, 25 May 2018 18:13:10 +0000 (18:13 +0000)
commit8a1da0a43b5853abd5ab22f5e5368e5cf4aca172
tree8bcedae591e662953b5542bed11e39e57a754d49
parentc932e28214ba95d279fd89a09e9025b5dc6e47d1
resourceloader: Include global LESS variables in LESS cache key

This prevents cache churn when the wiki-global LESS variables vary
between wikis because the cache key is used as a "global" instead of
db-local. This is good for the common case, but should still explicitly
vary if the vars differ between wikis.

Bug: T191937
Change-Id: If12fd07a7062792205384150d6f5fd9a83f996cc
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderFileModule.php
tests/phpunit/includes/resourceloader/ResourceLoaderTest.php