Merge pull request #3698 from danieldaquino/gh-3696

Reduce max age for stale temporary snapshots
This commit is contained in:
Daniel D’Aquino
2026-03-18 12:19:36 -07:00
committed by GitHub
@@ -25,7 +25,7 @@ actor DatabaseSnapshotManager {
private static let temporarySnapshotDirectoryPrefix = "snapshot_temp_"
/// Maximum age for temporary snapshot directories before they are considered stale.
private static let staleTemporarySnapshotLifetime: TimeInterval = 60 * 60 * 24
private static let staleTemporarySnapshotLifetime: TimeInterval = 60 * 30 // 30 minutes
/// Key for storing last snapshot timestamp in UserDefaults
private static let lastSnapshotDateKey = "lastDatabaseSnapshotDate"