mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #43836 from nextcloud/backport/43605/stable26
This commit is contained in:
commit
f9db8e4f63
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue