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
F14099830: D8127.diff
Tue, Nov 26, 12:43 PM
Unknown Object (File)
Sun, Nov 10, 2:48 AM
Unknown Object (File)
Oct 23 2024, 10:30 PM
Unknown Object (File)
Oct 23 2024, 1:15 AM
Unknown Object (File)
Oct 23 2024, 12:37 AM
Unknown Object (File)
Oct 13 2024, 12:06 AM
Unknown Object (File)
Sep 20 2024, 2:53 AM
Unknown Object (File)
Sep 20 2024, 2:36 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

Repository
rP Phabricator
Branch
gc1
Lint
Lint Passed
Unit
No Test Coverage

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
7

Use of new phutil_units().