//-------------------------------------------------------------------------- public void AfterBlogrollInsert(Blogroll br) { User owner = User.findById(br.OwnerId); int appId = br.AppId; LayoutCacher.Update(owner, appId); }
//-------------------------------------------------------------------------- public static void AfterCategoryInsert(BlogCategory category) { User owner = User.findById(category.OwnerId); int appId = category.AppId; LayoutCacher.Update(owner, appId); }
//-------------------------------------------------------------------------- public void AfterCommentInsert(BlogPostComment comment) { BlogPost post = BlogPost.findById(comment.RootId); User owner = User.findById(post.OwnerId); int appId = post.AppId; LayoutCacher.Update(owner, appId); }
private static void updatePost(BlogPost post) { User owner = User.findById(post.OwnerId); int appId = post.AppId; LayoutCacher.Update(owner, appId); HomeCacher.Update(owner, appId); MainCacher.Update(appId); }