Skip to content

Commit

Permalink
Merge pull request #43605 from nextcloud/orphan-share-daily
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Feb 23, 2024
2 parents db9fd94 + 0b8f0d0 commit d541a7d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/files_sharing/lib/DeleteOrphanedSharesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,14 @@
* Delete all share entries that have no matching entries in the file cache table.
*/
class DeleteOrphanedSharesJob extends TimedJob {
/**
* Default interval in minutes
**/
protected int $defaultIntervalMin = 15;

/**
* sets the correct interval for this timed job
*/
public function __construct(ITimeFactory $time) {
parent::__construct($time);

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

/**
Expand Down

0 comments on commit d541a7d

Please sign in to comment.