Merge pull request #43836 from nextcloud/backport/43605/stable26

This commit is contained in:
John Molakvoæ 2024-02-29 11:24:19 +01:00 committed by GitHub
commit f9db8e4f63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,20 +31,14 @@ use OCP\BackgroundJob\TimedJob;
* 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);
}
/**