mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-14 13:57:09 +00:00
Purge cache after webmention approved / deleted via admin
This commit is contained in:
parent
ec5b9a6868
commit
baf9c63e56
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user