mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
Broke cache refresh
Whopsie
This commit is contained in:
parent
3715af95aa
commit
29d9f8f81d
1 changed files with 11 additions and 0 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue