From 2916db78588537a8fffb70958bb65e0bfdfef896 Mon Sep 17 00:00:00 2001 From: Felix Blanke Date: Sun, 27 Aug 2023 23:21:56 +0200 Subject: [PATCH] Cleanup cache params --- wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsgi.py b/wsgi.py index 70d0de3..b73e2de 100644 --- a/wsgi.py +++ b/wsgi.py @@ -16,7 +16,7 @@ from download_digital import construct_dataframe, get_bez_data config = { "CACHE_TYPE": "FileSystemCache", "CACHE_DEFAULT_TIMEOUT": 300, - "CACHE_THRESHOLD": 1000, + "CACHE_THRESHOLD": 50, "CACHE_DIR": "cache", } import locale @@ -162,7 +162,7 @@ def plot( @app.route("/") -@cache.cached(timeout=50) +@cache.cached() def tables( url: str = "https://beschaeftigtenbefragung.verdi.de/", ):