From: Tim Düsterhus Date: Mon, 2 Jul 2012 19:11:05 +0000 (+0200) Subject: Reset caches in SessionHandler::changeUser() X-Git-Tag: 2.0.0_Beta_1~1038 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fee2c2e57a65b7a44806b6d869c1ec500e973756;p=GitHub%2FWoltLab%2FWCF.git Reset caches in SessionHandler::changeUser() Closes #630 --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 411e4e318f..23c1818358 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -486,6 +486,11 @@ class SessionHandler extends SingletonFactory { 'username' => $this->user->username )); + // reset caches + $this->groupData = null; + $this->languageIDs = null; + $this->languageID = $this->user->languageID; + // truncate session variables }