From eeabc63921aab05d97bf7a206581f924365f0dde Mon Sep 17 00:00:00 2001 From: sedflix Date: Sat, 3 Oct 2020 11:40:17 +0530 Subject: [PATCH] why the fuck caching is so hard? --- src/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.go b/src/main.go index cda6d2b..67fbd8d 100644 --- a/src/main.go +++ b/src/main.go @@ -80,8 +80,8 @@ func main() { router.StaticFile("/favicon.ico", "./web/favicon.ico") router.LoadHTMLFiles("web/index.html") - router.GET("/", cache.CachePageWithoutQuery(cacheStore, 2*time.Minute, index)) // index page - router.GET("/list/json", list) // show information in json + router.GET("/", cache.CachePage(cacheStore, 2*time.Minute, index)) // index page + router.GET("/list/json", list) // show information in json router.GET("/login", authoriseUserHandler) // to register router.GET("/auth", oAuthCallbackHandler) // oauth callback