Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4039039
purgeSeen.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
750 B
Referenced Files
None
Subscribers
None
purgeSeen.php
View Options
<?php
namespace
LoginNotify\Maintenance
;
use
LoginNotify\LoginNotify
;
use
MediaWiki\Maintenance\Maintenance
;
$IP
=
getenv
(
'MW_INSTALL_PATH'
);
if
(
$IP
===
false
)
{
$IP
=
__DIR__
.
'/../../..'
;
}
require_once
"$IP/maintenance/Maintenance.php"
;
class
PurgeSeen
extends
Maintenance
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
addDescription
(
'Purge expired user IP address information stored by LoginNotify'
);
}
public
function
execute
()
{
$loginNotify
=
LoginNotify
::
getInstance
();
$minId
=
$loginNotify
->
getMinExpiredId
();
for
(
;
$minId
!==
null
;
$this
->
waitForReplication
()
)
{
$minId
=
$loginNotify
->
purgeSeen
(
$minId
);
}
}
}
$maintClass
=
PurgeSeen
::
class
;
require_once
RUN_MAINTENANCE_IF_MAIN
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 04:44 (12 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b8/a8/beeb2ae9076d07310d0b941e4100
Default Alt Text
purgeSeen.php (750 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment