Skip to content

Commit

Permalink
why the fuck caching is so hard?
Browse files Browse the repository at this point in the history
  • Loading branch information
sedflix committed Oct 3, 2020
1 parent 463f7c7 commit eeabc63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eeabc63

Please sign in to comment.