Skip to content
Corex

DataExportRetention

Corex\Config\DataModels\DataExportRetention · class · Config layer

How long a Data export’s file is kept (spec 109, FR-013). An export is a copy of a site’s records sitting on the server. Nothing removed a Data export’s file: the thirty days were the Submissions export’s alone, while the notification for either said the file “stays available until the export retention window ends”. The file goes after the same thirty days; its entry in the history stays. An export’s expiry is not stored. It is this period counted from the day the export was made, so the date the history shows and the day the sweep removes the file cannot disagree.

__construct(DataExportStore $exports, Closure $now)

Section titled “__construct(DataExportStore $exports, Closure $now)”

expiryOf(DataExportRun $run): DateTimeImmutable

Section titled “expiryOf(DataExportRun $run): DateTimeImmutable”

pruneOlderThan(DateTimeImmutable $cutoff): int

Section titled “pruneOlderThan(DateTimeImmutable $cutoff): int”