aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-23 19:43:07 +0100
committerGitHub <noreply@github.com>2024-02-23 19:43:07 +0100
commitd541a7d1788b8b9ce5b8b357d5a8a4b25348702e (patch)
tree7f968a2b42cf0ab2b79d4fa9acf4f4aec5595f62 /apps
parentdb9fd9439e927535a16c59cf3aa235e9d00c00a8 (diff)
parent0b8f0d0a0bc282a02c7e88271a848cb1f8063729 (diff)
downloadnextcloud-server-d541a7d1788b8b9ce5b8b357d5a8a4b25348702e.tar.gz
nextcloud-server-d541a7d1788b8b9ce5b8b357d5a8a4b25348702e.zip
Merge pull request #43605 from nextcloud/orphan-share-daily
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/DeleteOrphanedSharesJob.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index 2d166da2010..6883bfd4762 100644
--- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -35,17 +35,13 @@ use Psr\Log\LoggerInterface;
*/
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);
}
/**