求助:GetVaryByCustomString()不工作

前段时间把DOTTEXT部署到服务器上好遇到一个奇怪的问题。

服务器和我的电脑都是win2003,在我的机子上测试时都正常的,
但在服务器上时自己的主页中文章列表却是显示别人的的,
当时就怀疑是缓存没更新,但不知原因在什么地方。
刚才加了段测试代码
 1           public   override   string  GetVaryByCustomString(HttpContext context,  string  custom)
 2          {
 3               if (custom  ==   " Blogger " )
 4              {
 5                   string  r  =  Dottext.Framework.Configuration.Config.CurrentBlog(context).Application;
 6                  System.Web.HttpContext.Current.Response.Write(  string .Format( " <!--{0}--> " ,r));
 7                   return  r;
 8              }
 9              System.Web.HttpContext.Current.Response.Write(  string .Format( " <!--cache{0}--> " ,System.DateTime.Now.ToLongTimeString()));
10               return   base .GetVaryByCustomString(context,custom);
11 
12          }
13 
14 

在我的电脑上测试时用到缓存的页面都能打印出“<!--/blogerName/-->”,
但在服务器上却没有任何显示,证明在服务器上GetVaryByCustomString(HttpContext context,  string  custom)根本同工作!

求助解决办法。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值