1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-01 01:18:22 +01:00

Fix GC threshold for mail to be 90 days instead of 0 seconds

See D13408.
This commit is contained in:
epriestley 2015-06-28 07:39:36 -07:00
parent 2fc7afcbc4
commit ae00d08b88

View file

@ -8,7 +8,7 @@ final class MetaMTAMailSentGarbageCollector
$mails = id(new PhabricatorMetaMTAMail())->loadAllWhere(
'dateCreated < %d LIMIT 100',
PhabricatorTime::getNow());
PhabricatorTime::getNow() - $ttl);
foreach ($mails as $mail) {
$mail->delete();