proper template generation time if not in cache
This commit is contained in:
parent
6b1205e4f3
commit
b9c0bd863b
|
@ -45,7 +45,9 @@ func makeBasicTemplateData(name string) models.TemplateData {
|
|||
"GeneratedAt": cacheItem.GeneratedAt.Format(time.UnixDate),
|
||||
}
|
||||
} else {
|
||||
strMap = make(map[string]string)
|
||||
strMap = map[string]string{
|
||||
"GeneratedAt": time.Now().Format(time.UnixDate),
|
||||
}
|
||||
}
|
||||
|
||||
templateData := models.TemplateData{
|
||||
|
|
Loading…
Reference in a new issue