From 5589754533aab9b7edbdc41cc13c2cd189aa3c26 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Fri, 25 Feb 2022 17:36:01 -0500 Subject: 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? --- siteconfig.py | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'siteconfig.py') 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", -- cgit v1.2.3