summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-16 11:40:52 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-19 20:14:44 +0100
commitccb05dbb170475870e755573f91da6e1914698d5 (patch)
tree440b1c24397ab39dceceb28affd3c0e4217a8ef7 /lib/private/Repair.php
parentb1ee9862f86d7d873f5168a921b183c5f373cc20 (diff)
downloadnextcloud-server-ccb05dbb170475870e755573f91da6e1914698d5.tar.gz
nextcloud-server-ccb05dbb170475870e755573f91da6e1914698d5.zip
Adds background job to cleanup all previews.
* A repair step that inserts a background job for each user * Each background job will delete for 15 seconds if it takes longer we reschedule. This is done so instances that don't use the system cron won't time out. * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php
index 7a5ef9fbd9e..c9f8dbfff69 100644
--- a/lib/private/Repair.php
+++ b/lib/private/Repair.php
@@ -36,6 +36,7 @@ use OC\Repair\CleanTags;
use OC\Repair\Collation;
use OC\Repair\DropOldJobs;
use OC\Repair\MoveUpdaterStepFile;
+use OC\Repair\NC11\CleanPreviews;
use OC\Repair\NC11\MoveAvatars;
use OC\Repair\OldGroupMembershipShares;
use OC\Repair\RemoveGetETagEntries;
@@ -155,6 +156,10 @@ class Repair implements IOutput{
\OC::$server->getJobList(),
\OC::$server->getSystemConfig()
),
+ new CleanPreviews(
+ \OC::$server->getJobList(),
+ \OC::$server->getUserManager()
+ ),
];
}