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? --- rss_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rss_generator.py') 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'] -- cgit v1.2.3