aboutsummaryrefslogtreecommitdiffstats
path: root/views.py
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2022-02-20 14:29:37 -0500
committermjfernez <mjf@mjfer.net>2022-02-20 14:29:37 -0500
commit43e114b82500476fa81754bf099ad25ee945201e (patch)
tree8980f538ad6324101282f3a04617972d6337703d /views.py
parent8db2c6905adf00878d5549cc7d5766745daf6dd9 (diff)
downloadezcms-43e114b82500476fa81754bf099ad25ee945201e.tar.gz
Add caching fix from mjfer.net branch
Diffstat (limited to 'views.py')
-rw-r--r--views.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/views.py b/views.py
index 3393cb2..7b12e35 100644
--- a/views.py
+++ b/views.py
@@ -99,7 +99,6 @@ def render_file(path):
@app.route("/raw/<path:path>")
-@cache.cached()
def send_file_from_site(path):
"""
send_file_from_site - instead of rendering a file within a template
@@ -115,7 +114,6 @@ def send_file_from_site(path):
@app.route("/static/<path:path>")
-@cache.cached()
def send_file_from_static(path):
"""
send_file_from_static - send files from the static directory
@@ -130,7 +128,6 @@ def send_file_from_static(path):
@app.route("/feed.xml")
-@cache.cached()
def render_rss_feed():
context = {
'config': siteconfig.rss_channel_config,
@@ -138,5 +135,7 @@ def render_rss_feed():
}
feed = render_template("feed.xml", **context)
response = make_response(feed)
- response.headers['Content-Type'] = siteconfig.MIMETYPES.get(".xml")
+ response.headers['Content-Type'] = str(
+ siteconfig.MIMETYPES.get(".xml")
+ )
return response