From b3b7598ec6846d53d7deb2c84781b06e22c93044 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 13 Dec 2018 23:55:43 +0800 Subject: Improve performance of dashboard (#4977) --- routers/user/home.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/user') diff --git a/routers/user/home.go b/routers/user/home.go index 4c6a9f6cd0..883adf4e6c 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -138,6 +138,7 @@ func Dashboard(ctx *context.Context) { OnlyPerformedBy: false, IncludeDeleted: false, }) + if ctx.Written() { return } -- cgit v1.2.3