Added FIXME about registering jobs in apps.php

This commit is contained in:
Vincent Petry 2015-04-08 12:09:42 +02:00
parent 17b141337a
commit 9c3893ce69
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file');
OCP\Util::addScript('files_sharing', 'share');
OCP\Util::addScript('files_sharing', 'external');
// FIXME: registering a job here will cause additional useless SQL queries
// when the route is not cron.php, needs a better way
\OC::$server->getJobList()->add('OCA\Files_sharing\Lib\DeleteOrphanedSharesJob');
\OC::$server->getActivityManager()->registerExtension(function() {