Page MenuHomeWickedGov Phorge

purgeMessageBlobStore.php
No OneTemporary

Size
939 B
Referenced Files
None
Subscribers
None

purgeMessageBlobStore.php

<?php
use MediaWiki\Maintenance\Maintenance;
use MediaWiki\ResourceLoader\MessageBlobStore;
// @codeCoverageIgnoreStart
require_once __DIR__ . '/Maintenance.php';
// @codeCoverageIgnoreEnd
/**
* Purge the MessageBlobStore cache.
*
* This script exists for use with the `--skip-message-purge` option of
* rebuildLocalisationCache.php.
*
* @ingroup ResourceLoader
* @since 1.36
*/
class PurgeMessageBlobStore extends Maintenance {
public function execute() {
// T379722: This script uses the MessageBlobStore static method for the
// cache clearance to avoid depending on the Database via ResourceLoader
// service wiring when obtaining MessageBlobStore object.
$cache = $this->getServiceContainer()->getMainWANObjectCache();
MessageBlobStore::clearGlobalCacheEntry( $cache );
}
}
// @codeCoverageIgnoreStart
$maintClass = PurgeMessageBlobStore::class;
require_once RUN_MAINTENANCE_IF_MAIN;
// @codeCoverageIgnoreEnd

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 10:42 (8 h, 49 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cf/88/325b027696fad2b81e4314c7bf86
Default Alt Text
purgeMessageBlobStore.php (939 B)

Event Timeline