Fix GC threshold for mail to be 90 days instead of 0 seconds
See D13408.
This commit is contained in:
@@ -8,7 +8,7 @@ final class MetaMTAMailSentGarbageCollector
|
|||||||
|
|
||||||
$mails = id(new PhabricatorMetaMTAMail())->loadAllWhere(
|
$mails = id(new PhabricatorMetaMTAMail())->loadAllWhere(
|
||||||
'dateCreated < %d LIMIT 100',
|
'dateCreated < %d LIMIT 100',
|
||||||
PhabricatorTime::getNow());
|
PhabricatorTime::getNow() - $ttl);
|
||||||
|
|
||||||
foreach ($mails as $mail) {
|
foreach ($mails as $mail) {
|
||||||
$mail->delete();
|
$mail->delete();
|
||||||
|
|||||||
Reference in New Issue
Block a user