Skip to content

Commit

Permalink
Merge pull request #43835 from nextcloud/backport/43605/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Feb 29, 2024
2 parents f318c29 + 95dcb7d commit c5cbc49
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions apps/files_sharing/lib/DeleteOrphanedSharesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,14 @@
* Delete all share entries that have no matching entries in the file cache table.
*/
class DeleteOrphanedSharesJob extends TimedJob {
/**
* Default interval in minutes
*
* @var int $defaultIntervalMin
**/
protected $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 c5cbc49

Please sign in to comment.