From 7524db96fe252cd471245195d84b1ba594e2a7bf Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 25 Aug 2017 11:07:22 -0400 Subject: [PATCH] move history.html cache invalidation to expire with frontpage --- contrib/backends/srndv2/src/srnd/varnish_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/varnish_cache.go b/contrib/backends/srndv2/src/srnd/varnish_cache.go index a57f420..05ccf9b 100644 --- a/contrib/backends/srndv2/src/srnd/varnish_cache.go +++ b/contrib/backends/srndv2/src/srnd/varnish_cache.go @@ -57,6 +57,8 @@ func (self *VarnishCache) RegenAll() { func (self *VarnishCache) RegenFrontPage() { self.invalidate(fmt.Sprintf("%s%s", self.varnish_url, self.prefix)) + // TODO: this is also lazy af + self.invalidate(fmt.Sprintf("%s%shistory.html", self.varnish_url, self.prefix)) } func (self *VarnishCache) invalidateUkko() { @@ -66,8 +68,6 @@ func (self *VarnishCache) invalidateUkko() { self.invalidate(fmt.Sprintf("%s%so/", self.varnish_url, self.prefix)) // TODO: this is lazy af self.RegenFrontPage() - // TODO: this is also lazy af - self.invalidate(fmt.Sprintf("%s%shistory.html", self.varnish_url, self.prefix)) } func (self *VarnishCache) pollRegen() {