I deleted a User record in rails console and it is still throwing a uniq key violation when I try to add a user with the deleted user's email.

I feel like Redis To Go on heroku might have cached that user (I am not very familiar with caching) and that's why the User with that email does NOT show up when I do find_by(email:"[email protected]") or when I do User.all.

I believe it might be sticking around in the cache? If so, how do I clear that cache?

I am using Rails 4, heroku, postgres, Redis To Go

0

There are 0 best solutions below