Skip to content

Commit

Permalink
fix: only cleanup orphaned shared daly
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 authored and juliushaertl committed Feb 26, 2024
1 parent 259073f commit d878263
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 d878263

Please sign in to comment.