diff options
author | mjfernez <mjf@mjfer.net> | 2022-02-25 17:36:01 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-02-25 17:36:01 -0500 |
commit | 5589754533aab9b7edbdc41cc13c2cd189aa3c26 (patch) | |
tree | 8e8b6ace47e4233eb807d8f0eec7ea7ad3dab73f /siteconfig.py | |
parent | 43e114b82500476fa81754bf099ad25ee945201e (diff) | |
download | ezcms-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.py | 29 |
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", |