From ae00d08b88862223db825d183c705d478a64c4e2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 28 Jun 2015 07:39:36 -0700 Subject: [PATCH] Fix GC threshold for mail to be 90 days instead of 0 seconds See D13408. --- .../garbagecollector/MetaMTAMailSentGarbageCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php b/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php index f6df18bef6..99103a2f2e 100644 --- a/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php +++ b/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php @@ -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();