resourceloader: Update MessageBlobStore documentation and code cleanup
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Nov 2015 23:54:04 +0000 (23:54 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 13 Nov 2015 00:41:57 +0000 (00:41 +0000)
commit4020bf947bba198728c37f1c40532add6a46b909
treec909dc1fa4473f87a50c8e550de70e0a151b4681
parent0d1e6b8c33e2cd29855cf3847ccb1d7371f39455
resourceloader: Update MessageBlobStore documentation and code cleanup

* Update and improve class documentation.

* Remove comment that claims to return false if the module has no message.
  generateMessageBlob() returns '{}' in that case. And this is expected since
  we want to cache the absence of messages.

* Re-use the module objects passed to MessageBlobStore::get() in getFromDB()
  instead of using ResourceLoader::getModule(). The object is the same either
  way (since ResourceLoader re-uses the objects also) but reduces complexity
  of getFromDB() to not need the ResourceLoader object as parameter.

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