or we could try this.

This commit is contained in:
Azareal 2020-02-24 11:37:02 +10:00
parent 75084fe452
commit 2094032ff6
1 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ func renderTemplate3(tmplName, hookName string, w http.ResponseWriter, r *http.R
//if h.CurrentUser.IsAdmin { //if h.CurrentUser.IsAdmin {
h.Elapsed1 = since.String() h.Elapsed1 = since.String()
//} //}
co.PerfCounter.Push(since)
if c.RunPreRenderHook("pre_render_"+hookName, w, r, &h.CurrentUser, pi) { if c.RunPreRenderHook("pre_render_"+hookName, w, r, &h.CurrentUser, pi) {
return nil return nil
} }
@ -146,7 +147,7 @@ func renderTemplate3(tmplName, hookName string, w http.ResponseWriter, r *http.R
if err != nil { if err != nil {
return err return err
} }
co.PerfCounter.Push(since) //co.PerfCounter.Push(since)
return nil return nil
} }