From b2d4b97d33f6fb940f2c0f3f1f3b4e1db97fabd0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 5 Jan 2025 09:43:52 -0500 Subject: [PATCH] disable slow endpoints --- takahe/jobs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/takahe/jobs.py b/takahe/jobs.py index ada46ac7..4ff7dcc4 100644 --- a/takahe/jobs.py +++ b/takahe/jobs.py @@ -60,4 +60,6 @@ class TakaheStats(BaseJob): } cache.set("nodeinfo_usage", nodeinfo_usage, timeout=None) logger.debug(f"/nodeinfo/2.0/ {nodeinfo_usage}") + # disable /api/v1/instance/activity for now as it's slow + cache.set("instance_activity_stats", [], timeout=None) logger.info("Tahake stats updated.")