Page MenuHomePhabricator

Add a GC for sent and received mail
ClosedPublic

Authored by epriestley on Feb 1 2014, 11:09 PM.
Tags
None
Referenced Files
F13815080: D8127.id18383.diff
Thu, Sep 19, 8:05 AM
F13815079: D8127.id.diff
Thu, Sep 19, 8:05 AM
F13815078: D8127.id18397.diff
Thu, Sep 19, 8:05 AM
F13815053: D8127.diff
Thu, Sep 19, 7:59 AM
Unknown Object (File)
Wed, Sep 18, 4:29 PM
Unknown Object (File)
Thu, Sep 5, 11:30 PM
Unknown Object (File)
Sat, Aug 31, 5:49 PM
Unknown Object (File)
Sat, Aug 31, 12:55 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
T4368: Implement GC for mail
Commits
Restricted Diffusion Commit
rP88436349b852: Add a GC for sent and received mail
Summary

Ref T4368. We don't currently GC these tables, and the sent mail table is one of the largest on secure.phabricator.com. There's no value in retaining this information indefinitely. Instead, retain it for 90 days, which should be plenty of time to debug/diagnose any issues.

Test Plan

Ran phd debug garbage, saw it clean up a reasonable amount of data from these tables.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I've hard-coded these TTLs (see inline) since I think it's unlikely many users are customizing these in general. I'll probably move to remove most of the other ones eventually -- there are maybe one or two which are somewhat useful, but for the most part I think I was overthinkinging the need for customization here.

src/applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php
8

Use of new phutil_units().