aboutsummaryrefslogtreecommitdiffstats
path: root/siteconfig.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 /siteconfig.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 'siteconfig.py')
-rw-r--r--siteconfig.py30
1 files changed, 26 insertions, 4 deletions
diff --git a/siteconfig.py b/siteconfig.py
index 4e0ef90..412dfce 100644
--- a/siteconfig.py
+++ b/siteconfig.py
@@ -39,7 +39,29 @@ class siteconfig:
# Option for Flask Caching
# https://flask-caching.readthedocs.io/en/latest/#configuring-flask-caching
- CACHE_TYPE = "SimpleCache"
-
- # Time in seconds that your files stay cached for
- CACHE_DEFAULT_TIMEOUT = 300
+ cache_config = {
+ 'CACHE_TYPE' : "SimpleCache",
+ 'CACHE_DEFAULT_TIMEOUT' : 300,
+ # You should only fill ONE of the sections below
+ # uswgi
+ 'CACHE_UWSGI_NAME' : None,
+ ##
+ # memcache
+ 'CACHE_MEMCACHED_SERVERS' : None,
+ 'CACHE_MEMCACHED_USERNAME' : None,
+ 'CACHE_MEMCACHED_PASSWORD' : None,
+ ##
+ # redis
+ 'CACHE_REDIS_HOST' : None,
+ 'CACHE_REDIS_PORT' : None,
+ 'CACHE_REDIS_PASSWORD' : None,
+ 'CACHE_REDIS_DB' : None,
+ 'CACHE_REDIS_URL' : None,
+ 'CACHE_REDIS_SENTINELS' : None,
+ 'CACHE_REDIS_SENTINEL_MASTER' : None,
+ 'CACHE_REDIS_CLUSTER' : None,
+ ##
+ # filesystem
+ 'CACHE_DIR' : None,
+ # add more options as needed from the URL above
+ }