From 54bd09f3de1eedf1789435347a18a34af9fdf416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 8 Aug 2012 18:34:50 +0200 Subject: [PATCH] UserEditor is now an IEditableCachedObject Closes #751 --- .../install/files/lib/data/user/UserEditor.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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(); + } } -- 2.20.1