Renamed cache handler

This commit is contained in:
Seednode 2023-01-23 17:41:18 -06:00
parent 359ded19f2
commit fa5ae95cb3
1 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ func staticFile(w http.ResponseWriter, r *http.Request, paths []string, stats *S
return nil 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) { return func(w http.ResponseWriter, r *http.Request) {
index.generateCache(args) index.generateCache(args)
@ -585,7 +585,7 @@ func ServePage(args []string) error {
if Cache { if Cache {
index.generateCache(args) index.generateCache(args)
http.Handle("/_/clear_cache", cacheClearHandler(args, index)) http.Handle("/_/clear_cache", cacheHandler(args, index))
} }
stats := &ServeStats{ stats := &ServeStats{