Ensure we don't throw an exception before we can upgrade to the new backgroundjob system
This commit is contained in:
parent
db0ea9780b
commit
07f510692c
1 changed files with 5 additions and 1 deletions
|
@ -561,7 +561,11 @@ class OC {
|
|||
*/
|
||||
public static function registerCacheHooks() {
|
||||
// register cache cleanup jobs
|
||||
\OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC');
|
||||
try { //if this is executed before the upgrade to the new backgroundjob system is completed it will throw an exception
|
||||
\OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC');
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
OC_Hook::connect('OC_User', 'post_login', 'OC_Cache_File', 'loginListener');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue