Skip to content

remove cache calls to fetch user membership#1274

Merged
imperosol merged 2 commits intotaistefrom
remove-club-cache
Feb 11, 2026
Merged

remove cache calls to fetch user membership#1274
imperosol merged 2 commits intotaistefrom
remove-club-cache

Conversation

@imperosol
Copy link
Copy Markdown
Member

@imperosol imperosol commented Dec 20, 2025

C'est plus simple et plus rapide d'avoir une cached_property qui stocke tous les membres actifs d'un club (donc presque jamais plus d'une trentaine d'éléments) que de faire un appel au cache à chaque fois qu'on veut la Membership d'un utilisateur

Copy link
Copy Markdown
Contributor

@klmp200 klmp200 left a comment

Choose a reason for hiding this comment

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

À part ça moi ça me va de retirer la complexité

Comment thread club/models.py
Comment thread club/tests/test_membership.py
@imperosol imperosol merged commit 8f1c786 into taiste Feb 11, 2026
2 checks passed
@imperosol imperosol deleted the remove-club-cache branch February 11, 2026 11:47
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.

2 participants