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? --- server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index ab66ccc..f3892c0 100644 --- a/server.py +++ b/server.py @@ -4,12 +4,10 @@ server.py - sets up and runs the flask server from flask import Flask from siteconfig import siteconfig from flask_compress import Compress -from flask_caching import Cache -from rss_generator import RSS_Item, get_rss_channel +from rss_generator import get_rss_channel app = Flask(__name__) compress = Compress() -cache = Cache(config=siteconfig.cache_config) from views import * @@ -33,6 +31,5 @@ def setup(): # Setup needs to come first to be compatible with wsgi setup() compress.init_app(app) -cache.init_app(app) if __name__ == "__main__": app.run() -- cgit v1.2.3