cache: Add in-process caching to MessageBlobStore
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 14 May 2015 18:54:39 +0000 (19:54 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 2 Jun 2015 22:10:16 +0000 (23:10 +0100)
commitef79d8361e24daf390fd9f5decf9e9a8137fbc18
tree974e7eddb5bcfc90ccec908557f63f8c92a7872b
parent11f3b09a1b5b0b85043690124662280630e844e7
cache: Add in-process caching to MessageBlobStore

This allows us to continue to use MessageBlobStore::get() as a way
to pre-fetch messages in batches for multiple modules while also
allowing individual modules to retrieve  their messages in a convenient
way.

This is in preparation for implementing ResourceLoaderModule::buildContents
and using it in ResourceLoaderModule::getVersionHash.

ResourceLoader::respond() already fetches message blobs in batches for the
actual response, but it also needs getVersionHash(), which would otherwise
fetch the same messages a second time.

Change-Id: I7e4c8b65765b54807123e85cfbb7eb2e5b2f39bd
includes/cache/MessageBlobStore.php