revsys/django-friendship

Caching of unrejected sent requests from user

kkuchar2 opened this issue · 0 comments

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?