Purge cache after webmention approved / deleted via admin

This commit is contained in:
Jan-Lukas Else 2020-11-22 13:20:48 +01:00
parent ec5b9a6868
commit baf9c63e56
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ func webmentionAdminDelete(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
purgeCache()
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
return
}
@ -130,6 +131,7 @@ func webmentionAdminApprove(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
purgeCache()
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
return
}