From 5efa42075e3d01847a2a1d6df74230d98baaad70 Mon Sep 17 00:00:00 2001 From: Colin Gross Date: Thu, 14 Mar 2024 11:00:16 -0400 Subject: [PATCH] Avoid potentially ambiguous usage caching setting. v2.19.1 --- bravo_api/VERSION | 2 +- bravo_api/blueprints/status/status.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bravo_api/VERSION b/bravo_api/VERSION index ef0f38a..b8e248f 100644 --- a/bravo_api/VERSION +++ b/bravo_api/VERSION @@ -1 +1 @@ -2.19.0 +2.19.1 diff --git a/bravo_api/blueprints/status/status.py b/bravo_api/blueprints/status/status.py index 2fea93a..8ed48f9 100644 --- a/bravo_api/blueprints/status/status.py +++ b/bravo_api/blueprints/status/status.py @@ -39,7 +39,7 @@ def usage() -> Response: result = current_app.cache.get('usage') if result is None: result = usage_stats(current_app.mmongo.db) - current_app.cache.set('usage', result, timeout=0) + current_app.cache.set('usage', result, timeout=300) return make_response(jsonify(result))