Fix clearing of user sessions.

Previously, we weren't clearing the users out of memcached (we just
killed them in the database), so in fact users were not logged out
when we deactivated them for an hour (when the memcached caches would
expire).

(imported from commit 0f0a2f70e003c184106c73b22b876f57c1ef3371)
This commit is contained in:
Tim Abbott
2013-04-02 11:54:57 -04:00
parent 3ff7e885a3
commit 303e77c07d
3 changed files with 24 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import sys
from django.core.management.base import BaseCommand
from zephyr.lib.actions import do_deactivate, user_sessions
from zephyr.lib.actions import do_deactivate
from zephyr.lib import utils
from zephyr.models import UserMessage, get_user_profile_by_email
from django.db import transaction, models