From 2094032ff63c4c4c4bbe30950a5fd3481e006db4 Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 24 Feb 2020 11:37:02 +1000 Subject: [PATCH] or we could try this. --- routes/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/common.go b/routes/common.go index 644212f1..44d64787 100644 --- a/routes/common.go +++ b/routes/common.go @@ -139,6 +139,7 @@ func renderTemplate3(tmplName, hookName string, w http.ResponseWriter, r *http.R //if h.CurrentUser.IsAdmin { h.Elapsed1 = since.String() //} + co.PerfCounter.Push(since) if c.RunPreRenderHook("pre_render_"+hookName, w, r, &h.CurrentUser, pi) { return nil } @@ -146,7 +147,7 @@ func renderTemplate3(tmplName, hookName string, w http.ResponseWriter, r *http.R if err != nil { return err } - co.PerfCounter.Push(since) + //co.PerfCounter.Push(since) return nil }