Skip to content

Commit 862e275

Browse files
committed
feat: cleanup after 1 day, not 1 hr
1 parent 36f46e1 commit 862e275

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Middleware/DeleteTemporaryFileUploads.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private function deleteAbandonedChunks()
4444
$disk
4545
->getFilesRecursively($dir = ChunkUploads::baseDirectory())
4646
->filter(fn ($path) => str_ends_with($path, '/.meta'))
47-
->filter(fn ($path) => (int) $disk->get($path) < now()->subHour()->timestamp)
47+
->filter(fn ($path) => (int) $disk->get($path) < now()->subDay()->timestamp)
4848
->each(fn ($meta) => $disk->getFilesRecursively(dirname($meta))->each(fn ($path) => $disk->delete($path)));
4949

5050
$disk->deleteEmptySubfolders($dir);

0 commit comments

Comments
 (0)