Exemplo n.º 1
0
func (self *LazyCacheController) invalidateThreadPage(entry model.ArticleEntry) {
	key := util.GetFilenameForThread(self.webroot_dir, entry.MessageID(), false)
	self.c.DeleteCache(key)
	self.invalidateFrontPage()
}
Exemplo n.º 2
0
// regenerate just a thread page
func (self *LazyCacheController) regenerateThread(root model.ArticleEntry) {
	key := util.GetFilenameForThread(self.webroot_dir, root.MessageID(), false)
	self.c.Cache(key, self.regen.GenerateThread(root))
}