Don't cache UserPresence info.

(imported from commit ff590bdf5d84bb9b3cedc561c2f2fbf7f7592a66)
This commit is contained in:
Steve Howell
2013-09-17 14:29:43 -04:00
parent c81c418478
commit 30b6f54a36
5 changed files with 4 additions and 28 deletions

View File

@@ -34,7 +34,7 @@ from django.utils import timezone
from zerver.lib.create_user import create_user
from zerver.lib import bugdown
from zerver.lib.cache import cache_with_key, cache_set, \
user_profile_by_email_cache_key, status_dict_cache_key, cache_set_many, \
user_profile_by_email_cache_key, cache_set_many, \
cache_delete, cache_delete_many, message_cache_key
from zerver.decorator import get_user_profile_by_email, json_to_list, JsonableError, \
statsd_increment
@@ -1367,7 +1367,6 @@ def gather_subscriptions(user_profile):
return (sorted(subscribed), sorted(unsubscribed))
@cache_with_key(status_dict_cache_key, timeout=60)
def get_status_dict(requesting_user_profile):
# Return no status info for MIT
if requesting_user_profile.realm.domain == 'mit.edu':