Skip to content

Commit 797c30d

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: only cleanup orphaned shared daly
Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
1 parent 3f04d6a commit 797c30d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files_sharing/lib/DeleteOrphanedSharesJob.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class DeleteOrphanedSharesJob extends TimedJob {
4444
public function __construct(ITimeFactory $time) {
4545
parent::__construct($time);
4646

47-
$this->interval = $this->defaultIntervalMin * 60;
47+
$this->setInterval(24 * 60 * 60); // 1 day
48+
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)