Skip to content

Commit

Permalink
Only cache templates not cached previously.
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo committed Nov 27, 2017
1 parent 3a48c78 commit 04cd213
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions html.go
Expand Up @@ -82,11 +82,11 @@ func retrieveTemplate(request *http.Request, htmlTemplate string) (tmpl *templat
if err != nil {
return
}
}

// Store in cache if required.
if Config.CacheTemplates {
htmlTemplates[subdirectory+"/"+htmlTemplate] = tmpl
// Store in cache if required.
if Config.CacheTemplates {
htmlTemplates[subdirectory+"/"+htmlTemplate] = tmpl
}
}

return
Expand Down

0 comments on commit 04cd213

Please sign in to comment.