From fa5ae95cb3206175d2a9d4c6213476d9c9b43184 Mon Sep 17 00:00:00 2001 From: Seednode Date: Mon, 23 Jan 2023 17:41:18 -0600 Subject: [PATCH] Renamed cache handler --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index 189a92e..f97e523 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -430,7 +430,7 @@ func staticFile(w http.ResponseWriter, r *http.Request, paths []string, stats *S return nil } -func cacheClearHandler(args []string, index *Index) http.HandlerFunc { +func cacheHandler(args []string, index *Index) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { index.generateCache(args) @@ -585,7 +585,7 @@ func ServePage(args []string) error { if Cache { index.generateCache(args) - http.Handle("/_/clear_cache", cacheClearHandler(args, index)) + http.Handle("/_/clear_cache", cacheHandler(args, index)) } stats := &ServeStats{