also free joblist and base from file cache code
This commit is contained in:
parent
3de7f58321
commit
e016ed55ff
2 changed files with 0 additions and 17 deletions
14
lib/base.php
14
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();
|
||||
|
@ -730,19 +729,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
|
||||
*/
|
||||
|
|
|
@ -172,9 +172,6 @@ class JobList implements IJobList {
|
|||
/**
|
||||
* @var Job $job
|
||||
*/
|
||||
if ($class === 'OC_Cache_FileGlobalGC') {
|
||||
$class = '\OC\Cache\FileGlobalGC';
|
||||
}
|
||||
if (!class_exists($class)) {
|
||||
// job from disabled app or old version of an app, no need to do anything
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue