zulip/zerver/lib/markdown
Alex Vandiver 351bdfaf78 preview: Use cache only as a non-durable cache, not an IPC.
The `get_link_embed_data` / `link_embed_data_from_cache` pair as
introduced in c93f1d4eda uses the cache
as a temporary store inside of the `embed_links` worker; this means
that it must be durable storage, or the worker will stall and re-fetch
the same links to preview them.

Switch to plumbing through the fetched URL embed data as an parameter
to the Markdown evaluation which uses them, rather than using the
cache as an intermediary.  This frees up the cache to be merely a
non-durable cache.

As a side-effect, this removes get_cache_with_key, and
link_embed_data_from_cache which was its only callsite.
2022-04-15 14:48:12 -07:00
..
__init__.py preview: Use cache only as a non-durable cache, not an IPC. 2022-04-15 14:48:12 -07:00
api_arguments_table_generator.py api_docs: Fix enum strings in parameters to have quotes. 2022-01-27 13:03:20 -08:00
api_return_values_table_generator.py api_docs: Add check for extra `additionalProperties` in return vals. 2022-02-02 17:25:58 -08:00
fenced_code.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
help_emoticon_translations_table.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
help_relative_links.py help_docs: Add 'About Zulip' to relative help links. 2022-04-12 15:22:58 -07:00
help_settings_links.py user docs: Add documentation for configuring new user defaults. 2021-09-21 16:43:35 -07:00
include.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
nested_code_blocks.py markdown: Organize preprocessor priorities in one place. 2021-09-20 16:57:43 -07:00
preprocessor_priorities.py markdown: Document built-in preprocessor priorities for convenience. 2021-09-27 10:42:09 -07:00
tabbed_sections.py help: Rewrite pages on inviting users and related permissions. 2022-03-28 17:00:10 -07:00
testing_mocks.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00