Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7430917
purgeMessageBlobStore.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
939 B
Referenced Files
None
Subscribers
None
purgeMessageBlobStore.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment