Force reload in template change
This commit is contained in:
parent
7ffa0ae265
commit
6d43cbfdda
3 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue