mirror of
https://github.com/kataras/iris.git
synced 2026-01-22 11:25:59 +00:00
Update to version 8.5.5
Former-commit-id: b5be58709f17758a8df3ebc99270b97ccd8b18f2
This commit is contained in:
2
_examples/cache/simple/main.go
vendored
2
_examples/cache/simple/main.go
vendored
@@ -58,7 +58,7 @@ All features of Sundown are supported, including:
|
||||
// Cache is a good and a must-feature on static content, i.e "about page" or for a whole blog site.
|
||||
func main() {
|
||||
app := iris.New()
|
||||
|
||||
app.Logger().SetLevel("debug")
|
||||
app.Get("/", cache.Handler(10*time.Second), writeMarkdown)
|
||||
// saves its content on the first request and serves it instead of re-calculating the content.
|
||||
// After 10 seconds it will be cleared and resetted.
|
||||
|
||||
Reference in New Issue
Block a user