Пример #1
0
        //--------------------------------------------------------------------------



        public void AfterBlogrollInsert(Blogroll br)
        {
            User owner = User.findById(br.OwnerId);
            int  appId = br.AppId;

            LayoutCacher.Update(owner, appId);
        }
Пример #2
0
        //--------------------------------------------------------------------------

        public static void AfterCategoryInsert(BlogCategory category)
        {
            User owner = User.findById(category.OwnerId);
            int  appId = category.AppId;

            LayoutCacher.Update(owner, appId);
        }
Пример #3
0
        //--------------------------------------------------------------------------

        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);
        }
Пример #4
0
        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);
        }