Fix login handler for file cache - fixes #16795

This commit is contained in:
Thomas Müller 2015-06-08 14:13:38 +02:00
parent a968b8409d
commit 97a3d8c313
2 changed files with 4 additions and 6 deletions

View file

@ -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();
});
}
}

View file

@ -166,9 +166,4 @@ class File {
}
}
}
public static function loginListener() {
$c = new self();
$c->gc();
}
}