Force reload in template change

This commit is contained in:
Manuel de Brito Fontes 2017-10-08 12:06:37 -03:00
parent 7ffa0ae265
commit 6d43cbfdda
3 changed files with 6 additions and 4 deletions

View file

@ -106,6 +106,7 @@ Error loading new template : %v
n.t.Close()
n.t = template
glog.Info("new NGINX template loaded")
n.controller.SetForceReload(true)
}
ngxTpl, err := ngx_template.NewTemplate(tmplPath, onChange)