From: Marcel Werk Date: Mon, 8 Aug 2016 14:57:04 +0000 (+0200) Subject: Removed obsolete class UserProfileCache X-Git-Tag: 3.0.0_Beta_1~786 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=656282649aa5f5c10248773581d092419aa27bbd;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete class UserProfileCache --- 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); - } -}