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 committed Feb 15, 2024
1 parent 1f0cba5 commit 0b8f0d0
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 0b8f0d0

Please sign in to comment.