redis-friendships icon indicating copy to clipboard operation
redis-friendships copied to clipboard

Destroying user

Open avocade opened this issue 15 years ago • 2 comments

Should probably be a cleanup method in after_destroy in user.rb, so the redis data is removed after destroying a User.

avocade avatar Feb 13 '11 11:02 avocade

Excellent, totally forgot about this. Will do that. BUT.... Method should be called in a background job. So I'm just doing the method, and the user can call it in a after_destroy if he wants to, or add it to a backround job.

seivan avatar Feb 21 '11 14:02 seivan

Sure, but is it really that big of a job to do right away? A "REDIS.del key" is really fast no?

avocade avatar Feb 21 '11 15:02 avocade