Remove call to SessionHandler::resetSessions() from UserGroupEditor
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Nov 2020 10:58:34 +0000 (11:58 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Nov 2020 11:02:12 +0000 (12:02 +0100)
wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php

index 9cf1de3d9df280ea9d18ef529fed2779f279e8dc..0fbc032caee154ecd0ec53530aa751b8e0b305c7 100644 (file)
@@ -5,7 +5,7 @@ use wcf\data\IEditableCachedObject;
 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;
 
 /**
@@ -181,11 +181,11 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj
         * @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');
        }
 }