use wcf\system\cache\builder\UserGroupCacheBuilder;
use wcf\system\cache\builder\UserGroupPermissionCacheBuilder;
use wcf\system\exception\SystemException;
-use wcf\system\session\SessionHandler;
+use wcf\system\user\storage\UserStorageHandler;
use wcf\system\WCF;
/**
* @inheritDoc
*/
public static function resetCache() {
- // clear cache
+ // Clear group cache.
UserGroupCacheBuilder::getInstance()->reset();
UserGroupPermissionCacheBuilder::getInstance()->reset();
- // clear sessions
- SessionHandler::resetSessions();
+ // Clear cached group assignments.
+ UserStorageHandler::getInstance()->resetAll('groupIDs');
}
}