Skip to content
Snippets Groups Projects
Commit 7f22a0e0 authored by epriestley's avatar epriestley
Browse files

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

See D13408.
parent 3f51f6e0
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ final class MetaMTAMailSentGarbageCollector ...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment