move history.html cache invalidation to expire with frontpage
This commit is contained in:
parent
bd67be0280
commit
7524db96fe
@ -57,6 +57,8 @@ func (self *VarnishCache) RegenAll() {
|
|||||||
|
|
||||||
func (self *VarnishCache) RegenFrontPage() {
|
func (self *VarnishCache) RegenFrontPage() {
|
||||||
self.invalidate(fmt.Sprintf("%s%s", self.varnish_url, self.prefix))
|
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() {
|
func (self *VarnishCache) invalidateUkko() {
|
||||||
@ -66,8 +68,6 @@ func (self *VarnishCache) invalidateUkko() {
|
|||||||
self.invalidate(fmt.Sprintf("%s%so/", self.varnish_url, self.prefix))
|
self.invalidate(fmt.Sprintf("%s%so/", self.varnish_url, self.prefix))
|
||||||
// TODO: this is lazy af
|
// TODO: this is lazy af
|
||||||
self.RegenFrontPage()
|
self.RegenFrontPage()
|
||||||
// TODO: this is also lazy af
|
|
||||||
self.invalidate(fmt.Sprintf("%s%shistory.html", self.varnish_url, self.prefix))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *VarnishCache) pollRegen() {
|
func (self *VarnishCache) pollRegen() {
|
||||||
|
Reference in New Issue
Block a user