Skip to content

Commit

Permalink
cache nodeinfo in memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 29, 2025
1 parent 7bf659b commit 005524d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def nodeinfo_jrd():

@app.get('/nodeinfo.json')
@canonicalize_request_domain(common.PROTOCOL_DOMAINS, common.PRIMARY_DOMAIN)
@memcache.memoize(expire=datetime.timedelta(hours=1))
@flask_util.headers(CACHE_CONTROL)
def nodeinfo():
"""
Expand Down

0 comments on commit 005524d

Please sign in to comment.