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 /rss_generator.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 'rss_generator.py')
-rw-r--r-- | rss_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rss_generator.py b/rss_generator.py index eb4ca82..bde4645 100644 --- a/rss_generator.py +++ b/rss_generator.py @@ -1,5 +1,5 @@ import os -from time import strftime, strptime, ctime +from time import strftime, strptime from siteconfig import siteconfig from view_functions import is_hidden_path, file_last_modified @@ -9,7 +9,7 @@ class RSS_Item: RSS_Item - a (very) basic implementation of an object in an RSS feed using only essential parameters as specified in: https://www.rssboard.org/rss-specification#hrelementsOfLtitemgt - + Item data is generated from a given file path """ PARAGRAPHS = siteconfig.rss_channel_config['DESCRIPTION_LENGTH'] |