Fix login handler for file cache - fixes #16795
This commit is contained in:
parent
a968b8409d
commit
97a3d8c313
2 changed files with 4 additions and 6 deletions
|
@ -729,7 +729,10 @@ class OC {
|
|||
|
||||
// NOTE: This will be replaced to use OCP
|
||||
$userSession = self::$server->getUserSession();
|
||||
$userSession->listen('postLogin', '\OC\Cache\File', 'loginListener');
|
||||
$userSession->listen('\OC\User', 'postLogin', function () {
|
||||
$cache = new \OC\Cache\File();
|
||||
$cache->gc();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
5
lib/private/cache/file.php
vendored
5
lib/private/cache/file.php
vendored
|
@ -166,9 +166,4 @@ class File {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function loginListener() {
|
||||
$c = new self();
|
||||
$c->gc();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue