Skip to content

Commit 37f858a

Browse files
authored
Merge pull request #43837 from nextcloud/backport/43605/stable27
[stable27] only cleanup orphaned shared daily
2 parents 980df1a + d878263 commit 37f858a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

apps/files_sharing/lib/DeleteOrphanedSharesJob.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,14 @@
3131
* Delete all share entries that have no matching entries in the file cache table.
3232
*/
3333
class DeleteOrphanedSharesJob extends TimedJob {
34-
/**
35-
* Default interval in minutes
36-
*
37-
* @var int $defaultIntervalMin
38-
**/
39-
protected $defaultIntervalMin = 15;
40-
4134
/**
4235
* sets the correct interval for this timed job
4336
*/
4437
public function __construct(ITimeFactory $time) {
4538
parent::__construct($time);
4639

47-
$this->interval = $this->defaultIntervalMin * 60;
40+
$this->setInterval(24 * 60 * 60); // 1 day
41+
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
4842
}
4943

5044
/**

0 commit comments

Comments
 (0)