Allow files to TTL and and be garbage collected

Summary: Added ttl field to files. Gabage collect files with expired ttl

Test Plan: created file with a ttl. Let garbage collector run

Reviewers: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4987
This commit is contained in:
kwadwo
2013-02-20 13:33:47 -08:00
committed by epriestley
parent 204d6481e4
commit 762ace810d
9 changed files with 70 additions and 5 deletions

View File

@@ -779,6 +779,7 @@ final class DiffusionBrowseFileController extends DiffusionController {
$data,
array(
'name' => basename($path),
'ttl' => time() + 60 * 60 * 24,
));
}