Kommentar: Cache-Hinweis bei Skript-Änderungen ohne Content-Änderung
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.
This commit is contained in:
@@ -45,6 +45,12 @@ def skip_wenn_unveraendert
|
|||||||
puts 'verlauf: _content/ unveraendert seit letztem Lauf, ueberspringe Neuberechnung.'
|
puts 'verlauf: _content/ unveraendert seit letztem Lauf, ueberspringe Neuberechnung.'
|
||||||
true
|
true
|
||||||
end
|
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
|
# 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
|
# a literal tab byte as field separator, safe against contents containing
|
||||||
|
|||||||
Reference in New Issue
Block a user