From f7668243b7a55d1f69d508b3baaf891055715f63 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 10 Oct 2021 23:05:07 -0400 Subject: Improve README. Expanded cache config This commit removes a lot of unnecessary rambling from the README and also makes it easier to use more complex cache options if you want to --- server.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index 85ffad0..545f4b6 100644 --- a/server.py +++ b/server.py @@ -9,12 +9,7 @@ from flask_caching import Cache app = Flask(__name__) compress = Compress() -cache = Cache( - config={ - 'CACHE_TYPE': siteconfig.CACHE_TYPE, - 'CACHE_DEFAULT_TIMEOUT': siteconfig.CACHE_DEFAULT_TIMEOUT, - } -) +cache = Cache(config=siteconfig.cache_config) from views import * -- cgit v1.2.3