Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5986227
rebuildmessages.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
rebuildmessages.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Maintenance
*/
use
MediaWiki\Maintenance\Maintenance
;
// @codeCoverageIgnoreStart
require_once
__DIR__
.
'/Maintenance.php'
;
// @codeCoverageIgnoreEnd
/**
* Maintenance script that purges cache used by MessageCache.
*
* @ingroup Maintenance
*/
class
RebuildMessages
extends
Maintenance
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
addDescription
(
'Purge the MessageCache for all interface languages.'
);
}
public
function
execute
()
{
$this
->
output
(
"Purging message cache for all languages on this wiki..."
);
$messageCache
=
$this
->
getServiceContainer
()->
getMessageCache
();
$messageCache
->
clear
();
$this
->
output
(
"Done
\n
"
);
}
}
// @codeCoverageIgnoreStart
$maintClass
=
RebuildMessages
::
class
;
require_once
RUN_MAINTENANCE_IF_MAIN
;
// @codeCoverageIgnoreEnd
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:02 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bb/e4/e59f3e3d87c372464869ea93cbee
Default Alt Text
rebuildmessages.php (865 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment