From 782783ab64444530dcd6fe477ce5f1a2741369ec Mon Sep 17 00:00:00 2001 From: Tobias Weiske Date: Wed, 26 Aug 2026 09:43:46 +0200 Subject: [PATCH] =?UTF-8?q?Kommentar:=20Cache-Hinweis=20bei=20Skript-?= =?UTF-8?q?=C3=84nderungen=20ohne=20Content-=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Der Skip-Cache erkennt nur Änderungen an _content/, nicht an diesem Skript selbst - hat uns beim letzten Deploy einer Logik-Änderung überrascht (Deploy lief durch, zeigte aber noch alte Werte, weil _content/'s HEAD unverändert war). Kein Verhaltensfix, nur ein Hinweis für's nächste Mal. --- scripts/generate-verlauf.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/generate-verlauf.rb b/scripts/generate-verlauf.rb index 77d297d..8f78157 100755 --- a/scripts/generate-verlauf.rb +++ b/scripts/generate-verlauf.rb @@ -45,6 +45,12 @@ def skip_wenn_unveraendert puts 'verlauf: _content/ unveraendert seit letztem Lauf, ueberspringe Neuberechnung.' true end +# Note for anyone changing this script itself (not _content/): the cache +# only tracks _content/'s HEAD, so it can't detect that the computation +# logic changed. After deploying such a change, delete the deployed +# hugo/data/verlauf-cache.json by hand (or just run this script once +# outside the normal deploy) - otherwise the next deploy silently skips +# recomputation and keeps serving output produced by the old logic. # One combined "git log" call per file instead of one per commit - %x09 is # a literal tab byte as field separator, safe against contents containing