Skip to content

Cache groups (and users?) as exisiting when fetched from server #9271

Closed

Description

@blizzz

When groups are retrieved from LDAP it is most likely that the existance check will be requested from the ownCloud group manager. If not cached, the existance check will finally call the LDAP server to verify this. Since we retrieved the groups just before, we should cache them as existing and save those unnecessary requests to LDAP.

This makes probably sense for users as well.

The caching could be triggered from within Access::ldap2ownCloudNames (where we already cache user display names for the same reason).

This will have a positive performance impact, which OTOH is not overly high. Nevertheless it is always better to use as few LDAP requests as possible :)

Activity

  1. added this to the milestone on Jun 27, 2014
  2. Finkregh commented on Sep 1, 2014

    @Finkregh
    Contributor

    has this been implemented in 7.0.1?

  3. blizzz commented on Sep 2, 2014

    @blizzz
    ContributorAuthor

    No.

  4. modified the milestones: , on Sep 2, 2014
  5. modified the milestones: , on Sep 4, 2014
  6. modified the milestones: , backlog on Jan 8, 2015
  7. PVince81 commented on Mar 7, 2016

    @PVince81
    Contributor

    I suppose that if we had a local table with all users from all user managers, that would be even better ?
    See #21282

  8. PVince81 commented on Oct 10, 2016

    @PVince81
    Contributor

    I see a key $cachedGroupMembers, so maybe it's already implemented ? @owncloud/ldap

  9. hodyroff commented on Dec 11, 2017

    @hodyroff

    Closing as its implemented for users and we are about to implement it for groups.

  10. lock commented on Aug 2, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  11. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions