Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852558
MetaMTAMailSentGarbageCollector.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
462 B
Referenced Files
None
Subscribers
None
MetaMTAMailSentGarbageCollector.php
View Options
<?php
final
class
MetaMTAMailSentGarbageCollector
extends
PhabricatorGarbageCollector
{
public
function
collectGarbage
(
)
{
$ttl
=
phutil_units
(
'90 days in seconds'
)
;
$table
=
new
PhabricatorMetaMTAMail
(
)
;
$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
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:40 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1756863
Default Alt Text
MetaMTAMailSentGarbageCollector.php (462 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment