From: Tim Düsterhus Date: Wed, 8 Aug 2012 16:34:50 +0000 (+0200) Subject: UserEditor is now an IEditableCachedObject X-Git-Tag: 2.0.0_Beta_1~887^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54bd09f3de1eedf1789435347a18a34af9fdf416;p=GitHub%2FWoltLab%2FWCF.git UserEditor is now an IEditableCachedObject Closes #751 --- diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index e91bf95902..dde1e8e857 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -2,7 +2,9 @@ namespace wcf\data\user; use wcf\data\user\group\UserGroup; use wcf\data\DatabaseObjectEditor; +use wcf\data\IEditableCachedObject; use wcf\system\clipboard\ClipboardHandler; +use wcf\system\session\SessionHandler; use wcf\system\WCF; use wcf\util\StringUtil; @@ -16,7 +18,7 @@ use wcf\util\StringUtil; * @subpackage data.user * @category Community Framework */ -class UserEditor extends DatabaseObjectEditor { +class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * @see wcf\data\DatabaseObjectDecorator::$baseClass */ @@ -247,4 +249,11 @@ class UserEditor extends DatabaseObjectEditor { } } } + + /** + * @see wcf\data\IEditableCachedObject::resetCache() + */ + public static function resetCache() { + SessionHandler::resetSessions(); + } }