From ff312d1e16d827a055d61fb72b675f4b341d89f7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 14 Sep 2020 05:49:49 -0700 Subject: [PATCH] Let /tags pull from cached easybake export. --- .../etiquette_flask/backend/endpoints/tag_endpoints.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py index 13cd010..f80a1bd 100644 --- a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py @@ -93,7 +93,12 @@ def get_tags_html(specific_tag_name=None): tags = [specific_tag] tag_count = sum(1 for child in specific_tag.walk_children()) - tags = etiquette.tag_export.easybake(tags, include_synonyms=False, with_objects=True) + tags = list(common.P.get_cached_tag_export( + 'easybake', + tags=tags, + include_synonyms=False, + with_objects=True, + )) response = common.render_template( request,