zulip/zerver
Vishnu KS b9066886d9 cache: Properly flush stream from cache after the stream is deleted.
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.
2021-07-06 17:21:59 -07:00
..
data_import markdown: Use a shared variable for IMAGE_EXTENSION. 2021-07-02 11:22:55 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib cache: Properly flush stream from cache after the stream is deleted. 2021-07-06 17:21:59 -07:00
management check_redis: Fix for key format change and Python 3. 2021-07-05 12:23:06 -07:00
migrations linkifiers: Add joint validation for linkifier urls and patterns. 2021-06-16 17:51:33 -07:00
openapi api docs: Move stray get_events Python example. 2021-07-06 10:17:03 -07:00
tests json_error: Completely remove json_error. 2021-07-06 15:34:33 -07:00
tornado mentions: Send user group mention data to notification notices. 2021-07-05 14:23:59 -07:00
views navbar: Migrate to handlebars. 2021-07-06 16:46:50 -07:00
webhooks message: Fix the edit topic bug by removing leading \n from msg content. 2021-07-06 09:41:54 -07:00
worker embed_links: Only log warning if worker times out. 2021-07-06 14:17:24 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py context_processors: Add test for `get_apps_page_url`. 2021-06-16 07:49:03 -07:00
decorator.py webhooks: Allow event registration using webhook_view decorator. 2021-07-05 19:10:31 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py billing: Enforce license limit for plans on manual license management. 2021-06-09 17:42:38 -07:00
logging_handlers.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
middleware.py json_error: Completely remove json_error. 2021-07-06 15:34:33 -07:00
models.py docs: Correct Big Blue Button to BigBlueButton. 2021-07-05 16:59:00 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00