19 $this->bundleFactory = $bundleFactory;
22 public function purge( Title $messageBundleTitle ):
void {
24 $messageBundle = $this->bundleFactory->getValidBundle( $messageBundleTitle );
28 $titlesWithThisMessageBundle = $messageBundle->getTitle()->getTemplateLinksTo(
29 [
'LIMIT' => 500,
'OFFSET' => $offset ]
32 foreach ( $titlesWithThisMessageBundle as $title ) {
33 $title->invalidateCache();
37 }
while ( count( $titlesWithThisMessageBundle ) === 500 );