1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00

Update to 5.0.2 - Cache(only) improvements

Cache - only improvements
This commit is contained in:
Gerasimos Maropoulos
2016-11-15 20:20:29 +02:00
parent 948eb2ecc1
commit 8b88aabc05
6 changed files with 106 additions and 45 deletions

View File

@@ -561,7 +561,6 @@ func (ctx *Context) renderSerialized(contentType string, obj interface{}, option
if err != nil {
return err
}
gzipEnabled := ctx.framework.Config.Gzip
charset := ctx.framework.Config.Charset
if len(options) > 0 {
@@ -1131,11 +1130,6 @@ func (ctx *Context) MaxAge() int64 {
return -1
}
// InvalidateCache clears the cache manually for this request uri context's handler's route
func (ctx *Context) InvalidateCache() {
ctx.framework.InvalidateCache(ctx)
}
// Log logs to the iris defined logger
func (ctx *Context) Log(format string, a ...interface{}) {
ctx.framework.Logger.Printf(format, a...)