From 2be70fc0b01378bba045232565e543362a4ddc89 Mon Sep 17 00:00:00 2001 From: Niklas rust Date: Wed, 23 Oct 2019 11:39:49 +0200 Subject: [PATCH] fix caching --- schickmacher/templates/base.html | 8 ++++---- schickmacher/templates/renderer/rendered.html | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/schickmacher/templates/base.html b/schickmacher/templates/base.html index 2d01ba9..d5e79e1 100644 --- a/schickmacher/templates/base.html +++ b/schickmacher/templates/base.html @@ -1,4 +1,4 @@ -{% load static i18n compress%} +{% load static i18n compress cache%} @@ -24,16 +24,16 @@ - {% load cache %} - {% cache css %} + {% compress css %} + {% cache None css %} + {% endcache %} {% endcompress %} - {% endcache %} {% endblock %} diff --git a/schickmacher/templates/renderer/rendered.html b/schickmacher/templates/renderer/rendered.html index 7772f0b..6dca75e 100644 --- a/schickmacher/templates/renderer/rendered.html +++ b/schickmacher/templates/renderer/rendered.html @@ -1,15 +1,16 @@ -{% load static compress tz %} +{% load static compress tz cache%} {{ title }} - {% load cache %} - {% cache css %} + {% compress css %} + {% cache None css %} - {% endcompress %} {% endcache %} + {% endcompress %} +