aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authormjfernez <mjfernez@gmail.com>2021-10-10 23:05:07 -0400
committermjfernez <mjfernez@gmail.com>2021-10-10 23:05:07 -0400
commitf7668243b7a55d1f69d508b3baaf891055715f63 (patch)
tree98eb775a32b05e0125147cf5230efd3b98ed5f80 /server.py
parent02a37ad308fbcc27a04787c84a76de7c2936a6d5 (diff)
downloadezcms-f7668243b7a55d1f69d508b3baaf891055715f63.tar.gz
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
Diffstat (limited to 'server.py')
-rw-r--r--server.py7
1 files changed, 1 insertions, 6 deletions
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 *