summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index fda65a221c7..631f9341546 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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');
}