[nominatim-web] Flush redis cache on expire
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nominatim-web] Flush redis cache on expire
- Date: Sat, 10 Apr 2021 19:26:12 +0000 (UTC)
commit bcae04d953fba9e6a9e11bbc70eaa241625e28de
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Sat Apr 10 21:25:54 2021 +0200
Flush redis cache on expire
app/main.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/app/main.py b/app/main.py
index 90bb33b..7aefd97 100644
--- a/app/main.py
+++ b/app/main.py
@@ -156,4 +156,6 @@ def expire():
reverse = cur.rowcount
postgres.commit()
+ redis_conn.flushall()
+
return {"search": search, "reverse": reverse}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]