diff options
author | Robin Appelman <robin@icewind.nl> | 2024-02-15 16:51:52 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-02-26 10:30:57 +0100 |
commit | 95dcb7d56bf0567dc9f8232b609c50ea04891f71 (patch) | |
tree | 620d51606d67a44523145b554fe288f653ddc924 /apps | |
parent | 3f04d6aa0077f01cbeabc5586c0b38754d4cdbe3 (diff) | |
download | nextcloud-server-95dcb7d56bf0567dc9f8232b609c50ea04891f71.tar.gz nextcloud-server-95dcb7d56bf0567dc9f8232b609c50ea04891f71.zip |
fix: only cleanup orphaned shared daly
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/DeleteOrphanedSharesJob.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php index d2cc39ff060..a9452cb3dcc 100644 --- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php +++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php @@ -32,19 +32,13 @@ use OCP\BackgroundJob\TimedJob; */ 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); } /** |