Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(sharing): Cache the list of tokens per user #11547

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nickvergessen
Copy link
Member

πŸ› οΈ API Checklist

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • πŸ“˜ API documentation in docs/ has been updated or is not required
  • πŸ”– Capability is added or not needed

@nickvergessen nickvergessen added this to the πŸ’ž Next Major (29) milestone Feb 7, 2024
@nickvergessen nickvergessen self-assigned this Feb 7, 2024
@nickvergessen nickvergessen force-pushed the perf/noid/cache-the-roomtokens-per-user branch from 847dd15 to 9eadb8a Compare February 8, 2024 09:04
@nickvergessen nickvergessen added the feature: api πŸ› οΈ OCS API for conversations, chats and participants label Feb 8, 2024
Signed-off-by: Joas Schilling <coding@schilljs.com>
@@ -512,6 +514,9 @@ public function addUsers(Room $room, array $participants, ?IUser $addedBy = null
$this->attendeeMapper->delete($attendee);
throw new CannotReachRemoteException();
}
} elseif ($attendee->getActorType() === Attendee::ACTOR_USERS) {
$cache = $this->cacheFactory->createDistributed('talk/usertokens');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should go into CachePrefix as a const

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement feature: api πŸ› οΈ OCS API for conversations, chats and participants feature: upload & shares & voice πŸ“€πŸŽ™οΈ Sharing files into a chat and audio recordings performance πŸš€
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants