diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-29 13:14:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-29 15:47:37 +0100 |
commit | d971b104edc51ddf3819eded837de97357c3b395 (patch) | |
tree | 319d28bad58c1bd83c150950679fb4fa4a8369ef /lib/base.php | |
parent | 01482b32a171bb8529bc8baacbe764107e52e14c (diff) | |
download | nextcloud-server-d971b104edc51ddf3819eded837de97357c3b395.tar.gz nextcloud-server-d971b104edc51ddf3819eded837de97357c3b395.zip |
Do not cache the settings/sections in the database anymore
This caused more troubles then it had benefits, especially
when an app got disabled or was removed without being disabled.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/base.php b/lib/base.php index 444c0df7e9e..b6382a069b3 100644 --- a/lib/base.php +++ b/lib/base.php @@ -54,7 +54,6 @@ * */ -use OC\Settings\RemoveOrphaned; use OCP\Share; use OC\Encryption\HookManager; use OC\Files\Filesystem; @@ -721,7 +720,6 @@ class OC { self::registerEncryptionWrapper(); self::registerEncryptionHooks(); self::registerAccountHooks(); - self::registerSettingsHooks(); $settings = new \OC\Settings\Application(); $settings->register(); @@ -833,22 +831,6 @@ class OC { } } - public static function registerSettingsHooks() { - $dispatcher = \OC::$server->getEventDispatcher(); - $dispatcher->addListener(OCP\App\ManagerEvent::EVENT_APP_DISABLE, function($event) { - /** @var \OCP\App\ManagerEvent $event */ - \OC::$server->getSettingsManager()->onAppDisabled($event->getAppID()); - }); - $dispatcher->addListener(OCP\App\ManagerEvent::EVENT_APP_UPDATE, function($event) { - /** @var \OCP\App\ManagerEvent $event */ - $jobList = \OC::$server->getJobList(); - $job = RemoveOrphaned::class; - if(!$jobList->has($job, null)) { - $jobList->add($job); - } - }); - } - private static function registerEncryptionWrapper() { $manager = self::$server->getEncryptionManager(); \OCP\Util::connectHook('OC_Filesystem', 'preSetup', $manager, 'setupStorage'); |