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 /server.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 'server.py')
-rw-r--r-- | server.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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() |