Beispiel #1
0
 public static void ReSetScoreset()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET);
     AdminCaches.RemoveObject(CacheKeys.FORUM_VALID_SCORE_NAME);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_CREDITS_TAX);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_CREDITS_TRANS);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_TRANSFER_MIN_CREDITS);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_EXCHANGE_MIN_CREDITS);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_MAX_INC_PER_THREAD);
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORESET_MAX_CHARGE_SPAN);
     AdminCaches.RemoveObject(CacheKeys.FORUM_VALID_SCORE_UNIT);
 }
Beispiel #2
0
        private static void ReSetFocusTopicList(int count, int views, int fid, TopicTimeType timetype, TopicOrderType ordertype, bool isdigest)
        {
            string key = string.Format(CacheKeys.FORUM_TOPIC_LIST_FORMAT, new object[]
            {
                count,
                views,
                fid,
                timetype,
                ordertype,
                isdigest
            });

            AdminCaches.RemoveObject(key);
        }
Beispiel #3
0
        public static void ReSetAllCache()
        {
            //AdminCaches.ReSetAdminGroupList();
            //AdminCaches.ReSetUserGroupList();
            AdminCaches.ReSetModeratorList();
            AdminCaches.ReSetAnnouncementList();
            AdminCaches.ReSetSimplifiedAnnouncementList();
            AdminCaches.ReSetForumListBoxOptions();
            AdminCaches.ReSetSmiliesList();
            AdminCaches.ReSetIconsList();
            AdminCaches.ReSetCustomEditButtonList();
            AdminCaches.ReSetConfig();
            AdminCaches.ReSetScoreset();
            AdminCaches.ReSetSiteUrls();
            AdminCaches.ReSetStatistics();
            AdminCaches.ReSetAttachmentTypeArray();
            AdminCaches.ReSetTemplateListBoxOptionsCache();
            //AdminCaches.ReSetOnlineGroupIconList();
            AdminCaches.ReSetForumLinkList();
            AdminCaches.ReSetBanWordList();
            AdminCaches.ReSetForumList();
            AdminCaches.ReSetRss();
            AdminCaches.ReSetRssXml();
            AdminCaches.ReSetValidTemplateIDList();
            AdminCaches.ReSetValidScoreName();
            //AdminCaches.ReSetMedalsList();
            AdminCaches.ReSetDBlinkAndTablePrefix();
            AdminCaches.ReSetAllPostTableName();
            AdminCaches.ReSetLastPostTableName();
            AdminCaches.ReSetAdsList();
            AdminCaches.ReSetStatisticsSearchtime();
            AdminCaches.ReSetStatisticsSearchcount();
            AdminCaches.ReSetCommonAvatarList();
            AdminCaches.ReSetJammer();
            AdminCaches.ReSetMagicList();
            AdminCaches.ReSetScorePaySet();
            AdminCaches.ReSetPostTableInfo();
            AdminCaches.ReSetDigestTopicList(16);
            AdminCaches.ReSetHotTopicList(16, 30);
            AdminCaches.ReSetRecentTopicList(16);
            AdminCaches.ResetAlbumCategory();
            AdminCaches.EditDntConfig();

            Online.ResetOnlineList();
        }
Beispiel #4
0
 public static void ReSetAllPostTableName()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_POST_TABLE_NAME);
 }
Beispiel #5
0
 public static void ResetAlbumCategory()
 {
     AdminCaches.RemoveObject(CacheKeys.SPACE_ALBUM_CATEGORY);
 }
Beispiel #6
0
 public static void ReSetSiteUrls()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_URLS);
 }
Beispiel #7
0
        //public static void ReSetMedalsList()
        //{
        //    AdminCaches.RemoveObject(CacheKeys.FORUM_UI_MEDALS_LIST);
        //}

        public static void ReSetDBlinkAndTablePrefix()
        {
            AdminCaches.RemoveObject(CacheKeys.FORUM_BASE_SETTING_DBCONNECTSTRING);
            AdminCaches.RemoveObject(CacheKeys.FORUM_BASE_SETTING_TABLE_PREFIX);
        }
Beispiel #8
0
 public static void ReSetIconsList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_ICONS_LIST);
 }
Beispiel #9
0
 public static void ReSetConfig()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_SETTING);
 }
Beispiel #10
0
 public static void ReSetAnnouncementList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_ANNOUNCEMENT_LIST);
 }
Beispiel #11
0
 public static void ReSetCommonAvatarList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_COMMON_AVATAR_LIST);
 }
Beispiel #12
0
 public static void ReSetPostTableInfo()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_POST_TABLE_NAME);
     AdminCaches.RemoveObject(CacheKeys.FORUM_LAST_POST_TABLE_NAME);
 }
Beispiel #13
0
 public static void ReSetTopiclistByFid(string fid)
 {
     AdminCaches.RemoveObject(string.Format(CacheKeys.FORUM_TOPIC_LIST_FID, fid));
 }
Beispiel #14
0
 public static void ReSetScorePaySet()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_SCORE_PAY_SET);
 }
Beispiel #15
0
 public static void ReSetMagicList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_MAGIC_LIST);
 }
Beispiel #16
0
 public static void ReSetJammer()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_JAMMER);
 }
Beispiel #17
0
 public static void ReSetNavPopupMenu()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_FORUM_LIST_MENU_DIV);
 }
Beispiel #18
0
 public static void ReSetForumListBoxOptions()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_FORUM_LIST_BOX_OPTIONS);
 }
Beispiel #19
0
 public static void ReSetDigestTopicList(int count)
 {
     AdminCaches.ReSetFocusTopicList(count, -1, 0, TopicTimeType.All, TopicOrderType.ID, true);
 }
Beispiel #20
0
 public static void ReSetAdsList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_ADVERTISEMENTS);
 }
Beispiel #21
0
 public static void ReSetSimplifiedAnnouncementList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_SIMPLIFIED_ANNOUNCEMENT_LIST);
 }
Beispiel #22
0
 public static void ReSetDigestTopicList(int count, int fid, TopicTimeType timetype, TopicOrderType ordertype)
 {
     AdminCaches.ReSetFocusTopicList(count, -1, fid, timetype, ordertype, true);
 }
Beispiel #23
0
 public static void ReSetSmiliesList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_SMILIES_LIST);
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_SMILIES_LIST_WITH_INFO);
 }
Beispiel #24
0
 public static void ReSetHotTopicList(int count, int views)
 {
     AdminCaches.ReSetFocusTopicList(count, views, 0, TopicTimeType.All, TopicOrderType.ID, false);
 }
Beispiel #25
0
 public static void ReSetCustomEditButtonList()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_CUSTOM_EDIT_BUTTON_LIST);
     //AdminCaches.RemoveObject(CacheKeys.FORUM_UI_CUSTOM_EDIT_BUTTON_INFO);
 }
Beispiel #26
0
        //public static void ReSetAdminGroupList()
        //{
        //    AdminCaches.RemoveObject(CacheKeys.FORUM_ADMIN_GROUP_LIST);
        //}

        //public static void ReSetUserGroupList()
        //{
        //    AdminCaches.RemoveObject(CacheKeys.FORUM_USER_GROUP_LIST);
        //}

        public static void ReSetModeratorList()
        {
            AdminCaches.RemoveObject(CacheKeys.FORUM_MODERATOR_LIST);
        }
Beispiel #27
0
 public static void ReSetHotTopicList(int count, int views, int fid, TopicTimeType timetype, TopicOrderType ordertype)
 {
     AdminCaches.ReSetFocusTopicList(count, views, fid, timetype, ordertype, false);
 }
Beispiel #28
0
 public static void ReSetRecentTopicList(int count)
 {
     AdminCaches.ReSetFocusTopicList(count, -1, 0, TopicTimeType.All, TopicOrderType.ID, false);
 }
Beispiel #29
0
 public static void ReSetTemplateListBoxOptionsCache()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_TEMPLATE_LIST_BOX_OPTIONS_FOR_FORUMINDEX);
     AdminCaches.RemoveObject(CacheKeys.FORUM_UI_TEMPLATE_LIST_BOX_OPTIONS);
 }
Beispiel #30
0
 public static void ReSetValidScoreName()
 {
     AdminCaches.RemoveObject(CacheKeys.FORUM_VALID_SCORE_NAME);
 }