示例#1
0
func (self *LazyCacheController) invalidateFrontPage() {
	key := util.GetFilenameForIndex(self.webroot_dir)
	self.c.DeleteCache(key)

	key = util.GetFilenameForBoards(self.webroot_dir)
	self.c.DeleteCache(key)
}
示例#2
0
// regenerate the front page
func (self *LazyCacheController) RegenFrontPage() {
	key := util.GetFilenameForIndex(self.webroot_dir)
	self.c.Cache(key, self.regen.GenerateFrontPage())

	key = util.GetFilenameForBoards(self.webroot_dir)
	self.c.Cache(key, self.regen.GenerateBoards())
}