resourceloader: Support hashes as cache invalidation trigger
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 30 Aug 2013 00:31:37 +0000 (17:31 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 7 Oct 2013 21:00:38 +0000 (23:00 +0200)
commit339ca89b18fc5f3c24633cd4b105fef70d85c2ee
tree3ef4c823ac891935349372bb3efdc04cb52c0ec5
parentf7e7a5ef9aa5f6aa200b96dad2645a84b0967be6
resourceloader: Support hashes as cache invalidation trigger

For now ResourceLoader will still internally deal with timestamps,
especially because they are easier to max() on the client side
(on the server we could make a hash of different hashes, on the
client that's a bit annoying).

However ResourceLoaderModule#getHashMtime will abstract the logic
we already use in ResourceLoaderLanguageDataModule and have
encouraged others to use, which is to put the timestamp and
hash in Memcached, and use that to observer the hash change and
update the timestamp when it does.

Updated ResourceLoaderLanguageDataModule to make use of this.

Change-Id: Ib051ef41ba239084671c30fd275b8d94099d5d52
RELEASE-NOTES-1.22
includes/resourceloader/ResourceLoaderLanguageDataModule.php
includes/resourceloader/ResourceLoaderModule.php