From baf9c63e5605694bf49ff35b967d3653366fe272 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 22 Nov 2020 13:20:48 +0100 Subject: [PATCH] Purge cache after webmention approved / deleted via admin --- webmention.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webmention.go b/webmention.go index c104de6..a505e37 100644 --- a/webmention.go +++ b/webmention.go @@ -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 }