From c5533e445041f9b7e3f2359d6cbcb8c3797e1c34 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Sun, 19 May 2024 18:25:46 +0200 Subject: [PATCH] Reduce cache timeout to 2 mins Signed-off-by: Jens Reidel --- Dockerfile | 2 +- config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d6f4385..f7ac406 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY . /app WORKDIR /app ENV GERRIT_URL "https://review.lineageos.org" -ENV CACHE_DEFAULT_TIMEOUT "3600" +ENV CACHE_DEFAULT_TIMEOUT "120" ENV CACHE_TYPE "simple" ENV WIKI_INSTALL_URL "https://wiki.lineageos.org/devices/{device}/install" ENV WIKI_INFO_URL "https://wiki.lineageos.org/devices/{device}" diff --git a/config.py b/config.py index 9a5c09e..3df4246 100644 --- a/config.py +++ b/config.py @@ -20,5 +20,5 @@ class Config(object): class FlaskConfig(object): - CACHE_DEFAULT_TIMEOUT = int(os.environ.get('CACHE_DEFAULT_TIMEOUT', '3600')) + CACHE_DEFAULT_TIMEOUT = int(os.environ.get('CACHE_DEFAULT_TIMEOUT', '120')) CACHE_TYPE = os.environ.get('CACHE_TYPE', 'simple')