diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-01-31 12:49:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 12:49:45 +0100 |
commit | 142914608307839dca300a2d410b869b6d2d3444 (patch) | |
tree | f040a5a33b4c28146c7600a28bcc32e0437230f1 /lib/base.php | |
parent | cb26f6d0148c3b1ae5122b70ddc2f5538834a7a7 (diff) | |
parent | d971b104edc51ddf3819eded837de97357c3b395 (diff) | |
download | nextcloud-server-142914608307839dca300a2d410b869b6d2d3444.tar.gz nextcloud-server-142914608307839dca300a2d410b869b6d2d3444.zip |
Merge pull request #8096 from nextcloud/feature/6382/do-not-cache-settings-in-db-anymore
Do not cache the settings/sections in the database anymore
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 f7dd3025b71..05da2814d4c 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(); // Make sure that the application class is not loaded before the database is setup if ($systemConfig->getValue("installed", false)) { @@ -836,22 +834,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'); |