mirror of https://github.com/zulip/zulip.git
cache: Clear rendered realm text description when flushing realm.
The commit 2d9c5b3575
introduced this cache key,
and didn't setup clearing of the cache correctly.
This commit is contained in:
parent
76f25bca59
commit
f084075c2a
|
@ -436,6 +436,7 @@ def flush_realm(sender: Any, **kwargs: Any) -> None:
|
||||||
cache_delete(realm_alert_words_automaton_cache_key(realm))
|
cache_delete(realm_alert_words_automaton_cache_key(realm))
|
||||||
cache_delete(active_non_guest_user_ids_cache_key(realm.id))
|
cache_delete(active_non_guest_user_ids_cache_key(realm.id))
|
||||||
cache_delete(realm_rendered_description_cache_key(realm))
|
cache_delete(realm_rendered_description_cache_key(realm))
|
||||||
|
cache_delete(realm_text_description_cache_key(realm))
|
||||||
|
|
||||||
def realm_alert_words_cache_key(realm: 'Realm') -> str:
|
def realm_alert_words_cache_key(realm: 'Realm') -> str:
|
||||||
return "realm_alert_words:%s" % (realm.string_id,)
|
return "realm_alert_words:%s" % (realm.string_id,)
|
||||||
|
|
Loading…
Reference in New Issue