diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-12 17:44:31 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-12 17:44:31 +0200 |
commit | e016ed55ff803f599414f72b7014be0911d95ec4 (patch) | |
tree | ddbdde32006622a7e38f8b33206dac03677d2ad1 /lib/base.php | |
parent | 3de7f58321462601755cac3745dca5c25edc6f2b (diff) | |
download | nextcloud-server-e016ed55ff803f599414f72b7014be0911d95ec4.tar.gz nextcloud-server-e016ed55ff803f599414f72b7014be0911d95ec4.zip |
also free joblist and base from file cache code
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/base.php b/lib/base.php index a9d582dcc39..c0ee3e84e19 100644 --- a/lib/base.php +++ b/lib/base.php @@ -652,7 +652,6 @@ class OC { OC_User::setupBackends(); } - self::registerCacheHooks(); self::registerFilesystemHooks(); if (\OC::$server->getSystemConfig()->getValue('enable_previews', false)) { self::registerPreviewHooks(); @@ -733,19 +732,6 @@ class OC { /** * register hooks for the cache */ - public static function registerCacheHooks() { - if (\OC::$server->getSystemConfig()->getValue('installed', false) && !\OCP\Util::needUpgrade()) { //don't try to do this before we are properly setup - \OCP\BackgroundJob::registerJob('OC\Cache\FileGlobalGC'); - - // NOTE: This will be replaced to use OCP - $userSession = \OC_User::getUserSession(); - $userSession->listen('postLogin', '\OC\Cache\File', 'loginListener'); - } - } - - /** - * register hooks for the cache - */ public static function registerLogRotate() { $systemConfig = \OC::$server->getSystemConfig(); if ($systemConfig->getValue('installed', false) && $systemConfig->getValue('log_rotate_size', false) && !\OCP\Util::needUpgrade()) { |