File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
wcfsetup/install/files/lib/system/cache/builder Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 33namespace wcf \system \cache \builder ;
44
55use wcf \data \user \rank \UserRank ;
6- use wcf \data \ user \ rank \ UserRankList ;
6+ use wcf \system \ cache \ eager \ UserRankCache ;
77
88/**
99 * Caches the list of user ranks.
1515 *
1616 * @deprecated 6.2 use `UserRankCache` instead
1717 */
18- final class UserRankCacheBuilder extends AbstractCacheBuilder
18+ final class UserRankCacheBuilder extends AbstractLegacyCacheBuilder
1919{
20- /**
21- * @inheritDoc
22- */
23- public function rebuild (array $ parameters )
20+ #[\Override]
21+ protected function rebuild (array $ parameters ): array
2422 {
25- $ list = new UserRankList ();
26- $ list ->readObjects ();
27-
28- return $ list ->getObjects ();
23+ return (new UserRankCache ())->getCache ();
2924 }
3025
3126 public function getRank (int $ rankID ): ?UserRank
3227 {
3328 return $ this ->getData ()[$ rankID ] ?? null ;
3429 }
30+
31+ #[\Override]
32+ public function reset (array $ parameters = [])
33+ {
34+ (new UserRankCache ())->rebuild ();
35+ }
3536}
You can’t perform that action at this time.
0 commit comments