From: Magnus Hagander Date: Mon, 4 Jan 2021 12:57:40 +0000 (+0100) Subject: Also purge cgit urls, in addition to existing gitweb ones X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=baf6a93ebec5725171c1ef16dc17205bfada2607;p=pggit.git Also purge cgit urls, in addition to existing gitweb ones --- diff --git a/triggers.py b/triggers.py index c875322..557f5f3 100644 --- a/triggers.py +++ b/triggers.py @@ -26,12 +26,14 @@ class varnishpurger(object): def pushtrigger(self, reponame, username): # Make a callback to a local varnish server to purge a repository - # from it. Assumes gitweb style URLs. + # from it, both gitweb and cgit. # Also, purge the actual http serving git repo itself. for u in [ r'^/gitweb/?$', r'^/gitweb/\?p=%s.git' % reponame, r'^/git/%s' % reponame, + r'^/cgit/?$', + r'^/cgit/%s' % reponame, ]: if not self._internal_purge(u): print("Varnish purge failed, website may become slightly out of date")