From fa0cc9bfca0d7740a2e843e925e63b3196bd19ca Mon Sep 17 00:00:00 2001 From: HgO Date: Wed, 6 Jul 2022 01:19:34 +0200 Subject: [PATCH] Revert "remove tag cache" This reverts commit 9173eb04e31482058f35cb8231db6fb7be2a7b35. --- matrix_alertbot/webhook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix_alertbot/webhook.py b/matrix_alertbot/webhook.py index 394260d..80b45c3 100644 --- a/matrix_alertbot/webhook.py +++ b/matrix_alertbot/webhook.py @@ -41,7 +41,9 @@ async def create_alert(request: web_request.Request) -> web.Response: return web.Response(status=500) fingerprints = tuple(alert["fingerprint"] for alert in data["alerts"]) - cache.set(event.event_id, fingerprints, expire=config.cache_expire_time) + cache.set( + event.event_id, fingerprints, expire=config.cache_expire_time, tag="event" + ) return web.Response(status=200)