From 46031407b599e27b89b181f1a302941e41dd6d88 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:43:04 -0700 Subject: [PATCH] Increase the cache size of convert_to_markdown to 4096 --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index 2b125c2c..86771dcf 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -48,7 +48,7 @@ def replace_blockquote(m): return m.group().replace('\n', '\n> ').replace('\\begin{blockquote}', '').replace('\\end{blockquote}', '') -@functools.lru_cache(maxsize=512) +@functools.lru_cache(maxsize=4096) def convert_to_markdown(string): # Blockquote