aboutsummaryrefslogtreecommitdiffstats
path: root/siteconfig.py
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2022-02-25 17:36:01 -0500
committermjfernez <mjf@mjfer.net>2022-02-25 17:36:01 -0500
commit5589754533aab9b7edbdc41cc13c2cd189aa3c26 (patch)
tree8e8b6ace47e4233eb807d8f0eec7ea7ad3dab73f /siteconfig.py
parent43e114b82500476fa81754bf099ad25ee945201e (diff)
downloadezcms-5589754533aab9b7edbdc41cc13c2cd189aa3c26.tar.gz
Remove flask caching and unused imports
This removes Flask caching since it seems I'm dumb and can't implement it correctly and it seems to serve pretty much no purpose anyway. Caching can always be handled by the server in front This commit also removes some unused imports that were leftover after moving functionality to different files (like view_functions) Flask compress might be useless too since nginx can also gzip. But I can actually observe the change... is there any problem with double gzipping?
Diffstat (limited to 'siteconfig.py')
-rw-r--r--siteconfig.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/siteconfig.py b/siteconfig.py
index 2f0f592..4a653d4 100644
--- a/siteconfig.py
+++ b/siteconfig.py
@@ -34,35 +34,6 @@ class siteconfig(config):
# see here https://pypi.org/project/Flask-Compress/
COMPRESS_MIMETYPES = list(config.MIMETYPES.values())
- # Options for Flask Caching
- # https://flask-caching.readthedocs.io/en/latest/#configuring-flask-caching
- cache_config = {
- 'CACHE_TYPE': "SimpleCache",
- 'CACHE_DEFAULT_TIMEOUT': 10,
- # 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
- }
-
# RSS Settings
rss_channel_config = {
'TITLE': "RSS Feed for example.net",