示例#1
0
        private static void updatePost(BlogCategory post)
        {
            User owner = User.findById(post.OwnerId);
            int  appId = post.AppId;

            LayoutViewCacher.Update(owner, appId);
        }
示例#2
0
        private static void updatePost(BlogPost post)
        {
            User owner = User.findById(post.OwnerId);
            int  appId = post.AppId;

            LayoutViewCacher.Update(owner, appId);
            HomeViewCacher.Update(owner, appId);
            MainViewCacher.Update(appId);
        }
示例#3
0
        private static void updatePost(BlogPostComment comment)
        {
            BlogPost post = BlogPost.findById(comment.RootId);

            User owner = User.findById(post.OwnerId);
            int  appId = post.AppId;

            LayoutViewCacher.Update(owner, appId);
        }