summaryrefslogtreecommitdiff
path: root/srv/src/http/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/middleware.go')
-rw-r--r--srv/src/http/middleware.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/srv/src/http/middleware.go b/srv/src/http/middleware.go
index 7296a35..943bc05 100644
--- a/srv/src/http/middleware.go
+++ b/srv/src/http/middleware.go
@@ -182,6 +182,7 @@ func purgeCacheOnOKMiddleware(cache *lru.Cache) middleware {
h.ServeHTTP(wrw, r)
if wrw.statusCode == 200 {
+ apiutil.GetRequestLogger(r).Info(r.Context(), "purging cache!")
cache.Purge()
}
})