From 4167eff2c88927052c510ed013cd01d4ce6b7fa0 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 14 May 2025 21:02:31 -0300 Subject: [PATCH] Add --noCache flag to hugo build - Adds the --noCache flag to the hugo build command. - This prevents hugo from using cached data during builds. - Improves build consistency and avoids potential stale content. --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b021608..05892e2 100755 --- a/build.sh +++ b/build.sh @@ -2,4 +2,10 @@ find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \; find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \; -hugo -s . -d /var/www/fr.yams.media/ --minify --cleanDestinationDir --gc --verbose + +hugo -s . -d /var/www/fr.yams.media/ \ + --minify \ + --cleanDestinationDir \ + --gc \ + --verbose \ + --noCache -- 2.39.5