Fixing redis issue with existing keys beyond a RESTORE.

This commit is contained in:
Samuel Clay 2013-10-07 15:40:16 -07:00
parent 61bd28c503
commit 6d7568a6e1

View file

@ -197,6 +197,7 @@ class UserSubscription(models.Model):
dump = r.dump(unread_ranked_stories_key)
if dump:
rt.delete(unread_ranked_stories_key)
rt.restore(unread_ranked_stories_key, 1*60*60, dump)
r.delete(unread_ranked_stories_key)