Revert "remove tag cache"

This reverts commit 9173eb04e3.
This commit is contained in:
HgO 2022-07-06 01:19:34 +02:00
parent 9173eb04e3
commit fa0cc9bfca

View file

@ -41,7 +41,9 @@ async def create_alert(request: web_request.Request) -> web.Response:
return web.Response(status=500) return web.Response(status=500)
fingerprints = tuple(alert["fingerprint"] for alert in data["alerts"]) 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) return web.Response(status=200)