Skip to content

Commit

Permalink
resources: Increment the meta cache version
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 15, 2021
1 parent fd1f1a1 commit a32f609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a32f609

Please sign in to comment.