|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|