ResourceLoaderImage: Use hashes for versioning instead of timestamps
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 17 Aug 2016 18:57:57 +0000 (11:57 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 19 Aug 2016 00:05:33 +0000 (00:05 +0000)
commit453ada4be7b70332e2e0d296302ec8afa3230c86
treeaba77dbce5cdac89d1ed7a047ca79c5e1a59d77a
parent6b6154c30eca9a6f6b451119fb800db170393336
ResourceLoaderImage: Use hashes for versioning instead of timestamps

Remove use of the deprecated getModifiedTime() method and incorporate
file information in getDefinitionSummary() directly, instead of relying
on the parent class to include getModifiedTime().

Change getDefinitionSummary() to append to the summary instead of
setting arbitrary keys in the array directly to avoid conflicts.
This matches the pattern used elsewhere.

Change ResourceLoaderImage to use file hashes instead of timestamps
to avoid needless cache invalidation. At Wikimedia these modules
tend to roll over every week due to git not storing timestamps.
See also T104950, 9112c9347bf37cee996.

Change-Id: I5d019bfb991c3b8042d1db14a853ba46cc690315
includes/resourceloader/ResourceLoaderImageModule.php