MediaWiki
REL1_39
purgeMessageBlobStore.php
Go to the documentation of this file.
1
<?php
2
3
require_once __DIR__ .
'/Maintenance.php'
;
4
5
use
MediaWiki\MediaWikiServices
;
6
15
class
PurgeMessageBlobStore
extends
Maintenance
{
16
public
function
execute
() {
17
$blobStore = MediaWikiServices::getInstance()->getResourceLoader()->getMessageBlobStore();
18
$blobStore->clear();
19
}
20
}
21
22
$maintClass
= PurgeMessageBlobStore::class;
23
require_once RUN_MAINTENANCE_IF_MAIN;
Maintenance
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
Definition
Maintenance.php:66
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:212
PurgeMessageBlobStore
Purge the MessageBlobStore cache.
Definition
purgeMessageBlobStore.php:15
PurgeMessageBlobStore\execute
execute()
Do the actual work.
Definition
purgeMessageBlobStore.php:16
$maintClass
$maintClass
Definition
purgeMessageBlobStore.php:22
maintenance
purgeMessageBlobStore.php
Generated on Mon Dec 16 2024 06:37:18 for MediaWiki by
1.10.0