/// <summary> /// 判断页面是否需要游客缓存页 /// </summary> /// <param name="pagename"></param> /// <returns>不需要返回false</returns> private bool GetUserCachePage(string pagename) { switch (pagename) { case "website.aspx": isguestcachepage = GetCachePage(pagename); break; case "forumindex.aspx": isguestcachepage = GetCachePage(pagename); break; case "spaceindex.aspx": isguestcachepage = GetCachePage(pagename); break; case "albumindex.aspx": isguestcachepage = GetCachePage(pagename); break; case "showtopic.aspx": { int pageid = DNTRequest.GetQueryInt("page", 1); int topicid = DNTRequest.GetQueryInt("topicid", 0); //参数数目为2或0表示当前页面可能为第一页帖子列表 if ((DNTRequest.GetParamCount() == 2 || DNTRequest.GetParamCount() == 3) && topicid > 0 && ForumUtils.ResponseShowTopicCacheFile(topicid, pageid)) { TopicStats.Track(topicid, 1); return(true); } break; } case "showforum.aspx": { int pageid = DNTRequest.GetQueryInt("page", 1); int forumid = DNTRequest.GetQueryInt("forumid", 0); //参数数目为2或0表示当前页面可能为第一页帖子列表 if ((DNTRequest.GetParamCount() == 2 || DNTRequest.GetParamCount() == 3) && forumid > 0 && ForumUtils.ResponseShowForumCacheFile(forumid, pageid)) { return(true); } break; } default: break; } return(false); }
/// <summary> /// 处理当前操作 /// </summary> /// <param name="state"></param> private void Process(object state) { TopicStats.TrackTopic(this._tvc); }