mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Rename update_stream_cache() to flush_stream().
(imported from commit c67844ef7feb1924ec495c4451e33b56b237c88a)
This commit is contained in:
@@ -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,)
|
||||
|
||||
Reference in New Issue
Block a user