cache rss feeds

This commit is contained in:
rimu 2024-02-28 13:01:36 +13:00
parent 8da4cce68a
commit b6572f1a86

View file

@ -91,6 +91,7 @@ def show_topic(topic_name):
@bp.route('/topic/<topic_name>.rss', methods=['GET']) @bp.route('/topic/<topic_name>.rss', methods=['GET'])
@cache.cached(timeout=600)
def show_topic_rss(topic_name): def show_topic_rss(topic_name):
topic = Topic.query.filter(Topic.machine_name == topic_name.strip().lower()).first() topic = Topic.query.filter(Topic.machine_name == topic_name.strip().lower()).first()