From 626570a31f52765bfba7d9dbf6f5cf9f0b1cea26 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 4 Aug 2023 01:05:46 +0300 Subject: [PATCH] expire function cache when source code changes --- files/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/__main__.py b/files/__main__.py index c3397a288..eaef68950 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -51,6 +51,7 @@ app.config["CACHE_KEY_PREFIX"] = f"{SITE}_flask_cache_" app.config["CACHE_TYPE"] = "RedisCache" app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL").strip() app.config["CACHE_DEFAULT_TIMEOUT"] = 86400 +app.config["CACHE_SOURCE_CHECK"] = True #to allow session cookie to work on videos.watchpeopledie.tv if SITE == 'watchpeopledie.tv':