Skip to content

remove cache from big pages #266

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

remove cache from big pages #266

wants to merge 21 commits into from

Conversation

simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Jul 5, 2025

Fixes the slowness issues that created the need for redis cache. user-mgmt and pi-mgmt should no longer be relying on redis at all. UnityUser->getGroups still uses cache by default, but it should enable us to remove cache later.

  • UnityUser->getGroups() -> UnityUser->getPIGroupGIDs():
    • before:
      • query LDAP for all PI groups (all attributes)
      • initialize an object for each PI group
      • filter for PI groups with membership
    • after:
      • query LDAP for PI groups with this user as a member
  • pi-mgmt.php:
    • before (without cache):
      • query LDAP for all PI groups (all attributes)
      • initialize a UnityUser object for each PI group owner
      • query LDAP separately for name, UID, and email for each PI group owner
    • after:
      • query LDAP for all PI groups (GIDs only)
      • query LDAP for all users (gecos, UID, and mail only)
  • user-mgmt.php:
    • before (without cache):
      • query LDAP for all users (all attributes)
      • initialize a UnityUser object for each user
      • query LDAP separately for name, org, UID, and email for each user
    • after:
      • query LDAP for all users (name, org, UID, and email only)

@simonLeary42 simonLeary42 marked this pull request as draft July 5, 2025 18:53
@simonLeary42 simonLeary42 changed the title optimize big pages remove cache from big pages Jul 5, 2025
@simonLeary42 simonLeary42 marked this pull request as ready for review July 6, 2025 22:49
@simonLeary42 simonLeary42 requested a review from bryank-cs July 6, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant