mirror of https://github.com/zulip/zulip.git
b9066886d9
The previous logic was incorrect and was not flushing the stream from cache after deletion. ``` stream = get_realm_stream("Verona", realm.id) stream.delete() get_realm_stream("Verona", realm.id) ``` In the above example, the last line of code would have returned the stream from cache instead of throwing a Stream.DoesNotExist error. This is fixed in the commit. I have verified that this commit indeed fix the issue by verifying that calling get_realm_stream again after deleting the stream results in Stream.DoesNotExist error. |
||
---|---|---|
.. | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |