58 $userSpaceIds = (
new Provider($this->userId))->getMySpaceIds();
62 $cache = \Bitrix\Main\Data\Cache::createInstance();
63 $cache->initCache(self::TTL, $this->getUserSpacesKey(), $this->getUserSpacesDir());
64 $cache->startDataCache();
65 $cache->forceRewriting(
true);
66 $cache->endDataCache($userSpaceIds);
86 foreach ((
new InvitationManager($this->userId))->getInvitations()->toArray() as $invitation)
88 $invitations[] = $invitation->getSpaceId();
91 $cache = \Bitrix\Main\Data\Cache::createInstance();
92 $cache->initCache(self::TTL, $this->getUserSpacesInvitationKey(), $this->getUserSpacesInvitationDir());
93 $cache->startDataCache();
94 $cache->endDataCache($invitations);