From 8c849a10778ccb13e80a6436b7c9e79be1558b1d Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 11 Jul 2025 21:51:54 +0200 Subject: [PATCH] added redis as cache backend --- cookbook/templates/system.html | 10 +++++++++- cookbook/views/views.py | 6 ++++++ recipes/settings.py | 6 ++++++ requirements.txt | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/cookbook/templates/system.html b/cookbook/templates/system.html index 6fd5dfb5c..7647bfeee 100644 --- a/cookbook/templates/system.html +++ b/cookbook/templates/system.html @@ -20,7 +20,7 @@
-

{% trans 'System' %}

+

{% trans 'System' %}

{% blocktrans %} Tandoor Recipes is an open source free software application. It can be found on GitHub. @@ -213,6 +213,14 @@ {% endfor %} {% endif %} +

Cache Test

+ On first load this should be None, on second load it should be the time of the first load. Expiration is set to 10 seconds after that it should be None again.
+ {% if cache_response %} + + Cache entry from {{ cache_response|date:" d m Y H:i:s" }} + {% else %} + No cache entry before load + {% endif %}

Debug