fix: only cleanup orphaned shared daly

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/43605/head
Robin Appelman 4 months ago
parent 1f0cba5f99
commit 0b8f0d0a0b
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

@ -34,18 +34,14 @@ use Psr\Log\LoggerInterface;
* 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);
}
/**

Loading…
Cancel
Save