From 005524df2c1246737f2ad21fcca194f1dc7b92c7 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Tue, 28 Jan 2025 20:25:42 -0800 Subject: [PATCH] cache nodeinfo in memcache --- pages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pages.py b/pages.py index 9404dd2b..acc7ff95 100644 --- a/pages.py +++ b/pages.py @@ -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(): """