Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113421372
MetaMTAMailReceivedGarbageCollector.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 00:00
Size
474 B
Mime Type
text/x-php
Expires
Tue, May 20, 00:00 (2 d)
Engine
blob
Format
Raw Data
Handle
26237481
Attached To
rPH Phabricator
MetaMTAMailReceivedGarbageCollector.php
View Options
<?php
final
class
MetaMTAMailReceivedGarbageCollector
extends
PhabricatorGarbageCollector
{
public
function
collectGarbage
()
{
$ttl
=
phutil_units
(
'90 days in seconds'
);
$table
=
new
PhabricatorMetaMTAReceivedMail
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn_w
,
'DELETE FROM %T WHERE dateCreated < %d LIMIT 100'
,
$table
->
getTableName
(),
time
()
-
$ttl
);
return
(
$conn_w
->
getAffectedRows
()
==
100
);
}
}
Event Timeline
Log In to Comment