Hi all !
I have an issue when using partialCached.
I would expect partialCached templates used without variant to be generated only once per build.
However, for my project, in multilanguage mode, it seems that the templates are generated once per language.
Here is my config file :
{
"disablePathToLower": "true",
"defaultContentLanguage": "en",
"defaultContentLanguageInSubdir": "true",
"disableHugoGeneratorInject": "true",
"hasCJKLanguage": "true",
"uglyURLS": "true",
"disableKinds": [
"RSS", "taxonomy"
],
"languages": {
"de": {
"contentDir": "content/de",
"languageName": "Deutsch",
"url" : "/de/",
"languageCode": "de",
"weight": 1
},
"en": {
"contentDir": "content/en",
"languageName": "English",
"url": "/en/",
"languageCode": "en",
"weight": 2
},
"es": {
"contentDir": "content/es",
"languageName": "Español",
"url" : "/es/",
"languageCode": "es",
"weight": 3
},
"fr": {
"contentDir": "content/fr",
"languageName": "Français",
"url": "/fr/",
"languageCode": "fr",
"weight": 4
}
},
"sitemap": {
"changefreq": "hourly",
"priority": 0.5
},
"taxonomies": {
"category": "",
"tag": ""
}
}
Log sample
hugo --templateMetrics
Building sites …
Template Metrics:
cumulative average maximum
duration duration duration count template
---------- -------- -------- ----- --------
924.236099ms 11.552951ms 39.807078ms 4 partials/player-data.html
I would expect player-data.html to be generated only once…
Thanks in advance for your help !