From 7f22a0e0fd43b71289ad662b07d74fdebcebdeef Mon Sep 17 00:00:00 2001
From: epriestley <git@epriestley.com>
Date: Sun, 28 Jun 2015 07:39:36 -0700
Subject: [PATCH] (stable) 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();
--
GitLab