Debian Codegraph @

maintenance/purgeMessageBlobStore.php

raw symbols SCIP
1 <?php
2
3 // @codeCoverageIgnoreStart
4 require_once __DIR__ . '/Maintenance.php';
5 // @codeCoverageIgnoreEnd
6
7 /**
8 * Purge the MessageBlobStore cache.
9 *
10 * This script exists for use with the `--skip-message-purge` option of
11 * rebuildLocalisationCache.php.
12 *
13 * @since 1.36
14 */
15 class PurgeMessageBlobStore extends Maintenance {
16 public function execute() {
17 $blobStore = $this->getServiceContainer()->getResourceLoader()->getMessageBlobStore();
18 $blobStore->clear();
19 }
20 }
21
22 // @codeCoverageIgnoreStart
23 $maintClass = PurgeMessageBlobStore::class;
24 require_once RUN_MAINTENANCE_IF_MAIN;
25 // @codeCoverageIgnoreEnd