MediaWiki master
purgeMessageBlobStore.php
Go to the documentation of this file.
1<?php
2
5
6// @codeCoverageIgnoreStart
7require_once __DIR__ . '/Maintenance.php';
8// @codeCoverageIgnoreEnd
9
20 public function execute() {
21 // T379722: This script uses the MessageBlobStore static method for the
22 // cache clearance to avoid depending on the Database via ResourceLoader
23 // service wiring when obtaining MessageBlobStore object.
24 $cache = $this->getServiceContainer()->getMainWANObjectCache();
25 MessageBlobStore::clearGlobalCacheEntry( $cache );
26 }
27}
28
29// @codeCoverageIgnoreStart
30$maintClass = PurgeMessageBlobStore::class;
31require_once RUN_MAINTENANCE_IF_MAIN;
32// @codeCoverageIgnoreEnd
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
getServiceContainer()
Returns the main service container.
This class generates message blobs for use by ResourceLoader.
Purge the MessageBlobStore cache.
execute()
Do the actual work.