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

Ensure we don't throw an exception before we can upgrade to the new backgroundjob system

parent db0ea978
No related branches found
No related tags found
No related merge requests found
...@@ -561,7 +561,11 @@ class OC { ...@@ -561,7 +561,11 @@ class OC {
*/ */
public static function registerCacheHooks() { public static function registerCacheHooks() {
// register cache cleanup jobs // register cache cleanup jobs
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'); \OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC');
} catch (Exception $e) {
}
OC_Hook::connect('OC_User', 'post_login', 'OC_Cache_File', 'loginListener'); OC_Hook::connect('OC_User', 'post_login', 'OC_Cache_File', 'loginListener');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment