I suggest to refactor message group loaders to simplify them by separating the cache handling into separate class. This will also allow better dependency injection to the loaders.
Description
Details
Event Timeline
Change #1016352 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] Rewrite TranslatablePageMessageGroupStore
Change #1027537 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] Rewrite MessageBundleMessageGroupLoader
Change #1016352 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Rewrite TranslatablePageMessageGroupStore
Change #1027537 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Rewrite MessageBundleMessageGroupLoader
The refactored versions of TranslatablePage and MessageBundle loaders have been deployed on translatewiki.net
Change #1034490 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory
Change #1034490 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory
Change #1034490 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory
Change #1036243 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] Convert FileBasedMessageGroupLoader to factory
Change #1036244 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] Add HookDefinedMessageGroupFactory
Change #1036243 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Convert FileBasedMessageGroupLoader to factory
Change #1036244 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Add HookDefinedMessageGroupFactory
Change #1039550 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):
[mediawiki/extensions/Translate@master] Cleanups after conversion to message group factories
Change #1039550 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Cleanups after conversion to message group factories