From 656282649aa5f5c10248773581d092419aa27bbd Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 8 Aug 2016 16:57:04 +0200 Subject: [PATCH] Removed obsolete class UserProfileCache --- CHANGELOG.md | 2 +- .../lib/data/user/UserProfileCache.class.php | 52 ------------------- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 wcfsetup/install/files/lib/data/user/UserProfileCache.class.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 9406d35d6d..de2a90e6dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ### 3.0.0 Alpha 1 (XXXX-YY-ZZ) * Clipboard support for tags in ACP ("delete" and "set as synonyms"). -* `wcf\data\user\UserProfileCache` for caching user profiles during runtime. +* `wcf\system\cache\runtime\UserProfileRuntimeCache` for caching user profiles during runtime. * `wcf\system\cache\builder\EventListenerCacheBuilder` returns `wcf\data\event\listener\EventListener` objects instead of data arrays. * `wcf\system\cache\source\RedisCacheSource` added. * Background queue (`wcf\system\background\*`) added. diff --git a/wcfsetup/install/files/lib/data/user/UserProfileCache.class.php b/wcfsetup/install/files/lib/data/user/UserProfileCache.class.php deleted file mode 100644 index 3c55a97313..0000000000 --- a/wcfsetup/install/files/lib/data/user/UserProfileCache.class.php +++ /dev/null @@ -1,52 +0,0 @@ - - * @package WoltLabSuite\Core\Data\User - * @since 3.0 - * - * @todo remove this class again - */ -class UserProfileCache extends SingletonFactory { - /** - * @inheritDoc - */ - public function cacheUserID($userID) { - UserProfileRuntimeCache::getInstance()->cacheObjectID($userID); - } - - /** - * @inheritDoc - */ - public function cacheUserIDs(array $userIDs) { - UserProfileRuntimeCache::getInstance()->cacheObjectIDs($userIDs); - } - - /** - * @inheritDoc - */ - public function getCachedUserProfiles() { - return UserProfileRuntimeCache::getInstance()->getCachedObjects(); - } - - /** - * @inheritDoc - */ - public function getUserProfile($userID) { - return UserProfileRuntimeCache::getInstance()->getObject($userID); - } - - /** - * @inheritDoc - */ - public function getUserProfiles(array $userIDs) { - return UserProfileRuntimeCache::getInstance()->getObjects($userIDs); - } -} -- 2.20.1