Added FIXME about registering jobs in apps.php
This commit is contained in:
parent
17b141337a
commit
9c3893ce69
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue