From b6572f1a86682c009ec18483d374d5d53b04585a Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:01:36 +1300 Subject: [PATCH] cache rss feeds --- app/topic/routes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/topic/routes.py b/app/topic/routes.py index 0cb366ac..ba992657 100644 --- a/app/topic/routes.py +++ b/app/topic/routes.py @@ -91,6 +91,7 @@ def show_topic(topic_name): @bp.route('/topic/.rss', methods=['GET']) +@cache.cached(timeout=600) def show_topic_rss(topic_name): topic = Topic.query.filter(Topic.machine_name == topic_name.strip().lower()).first()