aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/transform.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-09-19 10:12:29 +0200
committerBjørn Erik Pedersen <[email protected]>2019-09-19 12:36:01 +0200
commit6dec671fb930029e18ba9aa5135b3a27adcddb21 (patch)
treefa614878e492d099255baf8b6ab0d2cbf4512458 /resources/transform.go
parentc0d7188ec85e7a4b61489e38896108d877f6d902 (diff)
downloadhugo-6dec671fb930029e18ba9aa5135b3a27adcddb21.tar.gz
hugo-6dec671fb930029e18ba9aa5135b3a27adcddb21.zip
Fix cache key transformed resources
Fixes #6348
Diffstat (limited to 'resources/transform.go')
-rw-r--r--resources/transform.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/transform.go b/resources/transform.go
index 1fb3ed4da..ee4912a10 100644
--- a/resources/transform.go
+++ b/resources/transform.go
@@ -304,7 +304,7 @@ func (r *resourceAdapter) transform(publish, setContent bool) error {
key = key + "_" + tr.Key().Value()
}
- base := ResourceCacheKey(r.target.TargetPath())
+ base := ResourceCacheKey(r.target.Key())
key = cache.cleanKey(base) + "_" + helpers.MD5String(key)
@@ -537,6 +537,7 @@ type transformableResource interface {
resource.ContentProvider
resource.Resource
+ resource.Identifier
}
type transformationUpdate struct {