ResourceLoaderModule: cache file content hash
authorOri Livneh <ori@wikimedia.org>
Thu, 17 Sep 2015 22:30:41 +0000 (15:30 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 18 Sep 2015 22:27:34 +0000 (22:27 +0000)
commit7934bd9d72ab849fa7706840cfc43039dfc5018a
tree17c28dd0292215ca758a5fa9dac9bc27b5789373
parent935e24f9cdde858d3e00e48105f7c8e7c45eb2bf
ResourceLoaderModule: cache file content hash

Cache the content hash of module files in APC, if available. Include the
modification time in the cached value, so that touching the file invalidates
the cache.

Does this take us back to a world in which updates to a file's mtime cause a
module's version to change? No. The content hash cache will be invalidated,
and the content hash will be computed, but the actual value should remain
the same.

Change-Id: I5ceb8537c3cdb120beae19740635f085ee128272
includes/resourceloader/ResourceLoaderModule.php