Rename update_stream_cache() to flush_stream().

(imported from commit c67844ef7feb1924ec495c4451e33b56b237c88a)
This commit is contained in:
Steve Howell
2014-01-28 14:49:55 -05:00
parent 1e948d2d51
commit 912f96e7ec
2 changed files with 4 additions and 4 deletions

View File

@@ -289,7 +289,7 @@ def realm_alert_words_cache_key(realm):
# Called by models.py to flush the stream cache whenever we save a stream
# object.
def update_stream_cache(sender, **kwargs):
def flush_stream(sender, **kwargs):
stream = kwargs['instance']
items_for_memcached = {}
items_for_memcached[get_stream_cache_key(stream.name, stream.realm)] = (stream,)