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:
Puneeth Chaganti 2019-05-16 18:03:00 +05:30 committed by Tim Abbott
parent 76f25bca59
commit f084075c2a
1 changed files with 1 additions and 0 deletions

View File

@ -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,)