Page MenuHomestyx hydra

No OneTemporary

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
@@ -1,20 +1,20 @@
<?php
final class MetaMTAMailSentGarbageCollector
extends PhabricatorGarbageCollector {
public function collectGarbage() {
$ttl = phutil_units('90 days in seconds');
$mails = id(new PhabricatorMetaMTAMail())->loadAllWhere(
'dateCreated < %d LIMIT 100',
- PhabricatorTime::getNow());
+ PhabricatorTime::getNow() - $ttl);
foreach ($mails as $mail) {
$mail->delete();
}
return (count($mails) == 100);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Wed, Nov 5, 2:58 PM (46 m, 40 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
320926
Default Alt Text
(868 B)

Event Timeline