mirror of https://github.com/jlelse/GoBlog
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)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
purgeCache()
|
||||||
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
|
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -130,6 +131,7 @@ func webmentionAdminApprove(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
purgeCache()
|
||||||
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
|
http.Redirect(w, r, "/webmention/admin", http.StatusFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue