perf(templates): Cache templates in map

This commit is contained in:
2024-12-12 17:34:55 +01:00
parent b9e550d6f5
commit 7c32f1aad2
2 changed files with 13 additions and 1 deletions

View File

@@ -74,7 +74,9 @@ func main() {
}
barcodeGenerator := &services.DefaultBarcodeService{}
staticService := &services.DefaultStaticService{}
staticService := &services.DefaultStaticService{
Cache: make(map[string]string),
}
handler := handlers.DefaultHandler{
Config: config,
BarcodeService: barcodeGenerator,