Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
PurgeMessageBlobStore
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 execute
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3require_once __DIR__ . '/Maintenance.php';
4
5/**
6 * Purge the MessageBlobStore cache.
7 *
8 * This script exists for use with the `--skip-message-purge` option of
9 * rebuildLocalisationCache.php.
10 *
11 * @since 1.36
12 */
13class PurgeMessageBlobStore extends Maintenance {
14    public function execute() {
15        $blobStore = $this->getServiceContainer()->getResourceLoader()->getMessageBlobStore();
16        $blobStore->clear();
17    }
18}
19
20$maintClass = PurgeMessageBlobStore::class;
21require_once RUN_MAINTENANCE_IF_MAIN;