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

Caching of unrejected sent requests from user #175

Closed
kkuchar2 opened this issue Sep 3, 2022 · 0 comments · Fixed by #178
Closed

Caching of unrejected sent requests from user #175

kkuchar2 opened this issue Sep 3, 2022 · 0 comments · Fixed by #178

Comments

@kkuchar2
Copy link

kkuchar2 commented Sep 3, 2022

When I send friend request from user1 to user2 and query sent_requests I get
friendship request object with rejected field set to None.

After user2 rejects the request and user1 queries sent_requests again (shortly, within cache persistence time) the result is friendship request with rejected field set to None (which it got from sent_requests cache) even though in DB this request has rejected field set to rejection date.

Is it possible to update sent_requests cache to keep track of rejection state
or to add another query option like sent_unrejected_requests?

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 a pull request may close this issue.

1 participant