Skip to content

Commit

Permalink
Broke cache refresh
Browse files Browse the repository at this point in the history
Whopsie
  • Loading branch information
aunefyren committed Dec 3, 2022
1 parent 3715af9 commit 29d9f8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions routes/admin_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
return
}

if config_payload.ClearCache {

log.Println("Clear cache setting set to true. Clearing cache.")

err = files.ClearCache()
if err != nil {
log.Println("Failed to clear cache:")
log.Println(err)
}
}

log.Println("New Wrapperr configuration saved for type: " + config_payload.DataType + ".")
utilities.RespondDefaultOkay(w, r, "Saved new Wrapperr config.")

Expand Down

0 comments on commit 29d9f8f

Please sign in to comment.