From a32f6096c2dfc0c0696264b04958e900db0aff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 15 Jul 2021 13:03:30 +0200 Subject: [PATCH] resources: Increment the meta cache version See #8586 --- resources/image.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/image.go b/resources/image.go index 3c70c9bf485..6b295a0e778 100644 --- a/resources/image.go +++ b/resources/image.go @@ -360,7 +360,8 @@ func (i *imageResource) setBasePath(conf images.ImageConfig) { } func (i *imageResource) getImageMetaCacheTargetPath() string { - const imageMetaVersionNumber = 1 // Increment to invalidate the meta cache + // Version 2: Hugo 0.86 got a new Exif library. + const imageMetaVersionNumber = 2 // Increment to invalidate the meta cache cfgHash := i.getSpec().imaging.Cfg.CfgHash df := i.getResourcePaths().relTargetDirFile