Removed obsolete class UserProfileCache
authorMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2016 14:57:04 +0000 (16:57 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2016 14:57:29 +0000 (16:57 +0200)
CHANGELOG.md
wcfsetup/install/files/lib/data/user/UserProfileCache.class.php [deleted file]

index 9406d35d6d104cf1fbdc25a58bb38bf36e197c5b..de2a90e6dc86f582c1ec868c6f60699828630433 100644 (file)
@@ -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 (file)
index 3c55a97..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-namespace wcf\data\user;
-use wcf\system\cache\runtime\UserProfileRuntimeCache;
-use wcf\system\SingletonFactory;
-
-/**
- * Caches user profile objects during runtime.
- * 
- * @author     Matthias Schmidt
- * @copyright  2001-2016 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @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);
-       }
-}