resourceloader: Make minify cache keys globally shared instead of local
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 1 Jul 2015 03:33:13 +0000 (04:33 +0100)
committerKrinkle <krinklemail@gmail.com>
Wed, 1 Jul 2015 03:44:55 +0000 (03:44 +0000)
commit9bd84c11d22bc593c3c6b3f18142f3203217570e
tree9bfab6cdd972c9768f77890a05ee909710366f47
parentc2a4cb59772412b6fe71b6ed9a54bcd4752764d2
resourceloader: Make minify cache keys globally shared instead of local

The keys already contain a hash of the contents and the version of
the filter system. No need for these to be fragmented by wiki.

Previously wiki farms would minify the same module build for
every wiki. For e.g. Wikimedia this should bring down minification
runs for a new module version from ~800x to something lower.
It won't be 1 since modules may still vary by language, or config.

This should speed up load.php responses when a new module version
is deployed.

It will also reduce response time for page views of logged-in
users due to improved minification cache of embedded modules.

Change-Id: Iee884208c5c4ba40b46abd332271df698c6afb6f
includes/resourceloader/ResourceLoader.php