mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
cache rss feeds
This commit is contained in:
parent
8da4cce68a
commit
b6572f1a86
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ def show_topic(topic_name):
|
|||
|
||||
|
||||
@bp.route('/topic/<topic_name>.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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue