Skip to content
Snippets Groups Projects
Commit ec9bf8a2 authored by Robin Appelman's avatar Robin Appelman
Browse files

Support having legacy `OC_Cache_FileGlobalGC` background jobs

parent b62cb007
No related branches found
No related tags found
No related merge requests found
...@@ -149,6 +149,9 @@ class JobList implements IJobList { ...@@ -149,6 +149,9 @@ class JobList implements IJobList {
/** /**
* @var Job $job * @var Job $job
*/ */
if ($class === 'OC_Cache_FileGlobalGC') {
$class = '\OC\Cache\FileGlobalGC';
}
$job = new $class(); $job = new $class();
$job->setId($row['id']); $job->setId($row['id']);
$job->setLastRun($row['last_run']); $job->setLastRun($row['last_run']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment