Merge pull request #8838 from owncloud/backgroundjob-legacy-gc
Support having legacy `OC_Cache_FileGlobalGC` background jobs
This commit is contained in:
commit
587159c73e
|
@ -149,6 +149,9 @@ class JobList implements IJobList {
|
|||
/**
|
||||
* @var Job $job
|
||||
*/
|
||||
if ($class === 'OC_Cache_FileGlobalGC') {
|
||||
$class = '\OC\Cache\FileGlobalGC';
|
||||
}
|
||||
$job = new $class();
|
||||
$job->setId($row['id']);
|
||||
$job->setLastRun($row['last_run']);
|
||||
|
|
Loading…
Reference in New Issue