DNN性能优化方案系列(1)概述
2007-08-10 06:06
549 查看
4.授权缓存
文件:DotNetNuke_04.05.05_Source\Website\Default.aspx.vb
If Request.IsAuthenticated = True Then
' set client side page caching for authenticated users
If Convert.ToString(PortalSettings.HostSettings("AuthenticatedCacheability")) <> "" Then
Select Case Convert.ToString(PortalSettings.HostSettings("AuthenticatedCacheability"))
Case "0" : Response.Cache.SetCacheability(HttpCacheability.NoCache)
Case "1" : Response.Cache.SetCacheability(HttpCacheability.Private)
Case "2" : Response.Cache.SetCacheability(HttpCacheability.Public)
Case "3" : Response.Cache.SetCacheability(HttpCacheability.Server)
Case "4" : Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache)
Case "5" : Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate)
End Select
Else
Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache)
End If
End If
上面这段源码,为什么这样设置,不明白,知道的兄弟,请指点下
附一asp.net性能优化的文章
http://book.chinaz.com/net/asp.net1/dot15.htm
5.Compression Setting: 即DNN内置的CompressionModule
<<让你的dnn飞起来,超级加速>>http://www.cnreds.com/Default.aspx?tabid=60&ArticleID=185
一文中说CompressionModule在DNN4.5中不能正常使用.实际DNN已经内置了这个功能.
6.Use Whitespace Filter: 不知道怎么用,一但勾上就出错.可能是服务文件编码设置那里不对而导致DNN不能正常运行.
上面具体都是怎么实现对系统的优化.我们在本系列以后章节,具体介绍.
ps:要冲排名2000了,大家帮忙顶下.
文件:DotNetNuke_04.05.05_Source\Website\Default.aspx.vb
If Request.IsAuthenticated = True Then
' set client side page caching for authenticated users
If Convert.ToString(PortalSettings.HostSettings("AuthenticatedCacheability")) <> "" Then
Select Case Convert.ToString(PortalSettings.HostSettings("AuthenticatedCacheability"))
Case "0" : Response.Cache.SetCacheability(HttpCacheability.NoCache)
Case "1" : Response.Cache.SetCacheability(HttpCacheability.Private)
Case "2" : Response.Cache.SetCacheability(HttpCacheability.Public)
Case "3" : Response.Cache.SetCacheability(HttpCacheability.Server)
Case "4" : Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache)
Case "5" : Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate)
End Select
Else
Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache)
End If
End If
上面这段源码,为什么这样设置,不明白,知道的兄弟,请指点下
附一asp.net性能优化的文章
http://book.chinaz.com/net/asp.net1/dot15.htm
5.Compression Setting: 即DNN内置的CompressionModule
<<让你的dnn飞起来,超级加速>>http://www.cnreds.com/Default.aspx?tabid=60&ArticleID=185
一文中说CompressionModule在DNN4.5中不能正常使用.实际DNN已经内置了这个功能.
6.Use Whitespace Filter: 不知道怎么用,一但勾上就出错.可能是服务文件编码设置那里不对而导致DNN不能正常运行.
上面具体都是怎么实现对系统的优化.我们在本系列以后章节,具体介绍.
ps:要冲排名2000了,大家帮忙顶下.
相关文章推荐
- DNN性能优化方案系列(2)Page State Persistence
- Java性能优化指南系列(一):概述和性能测试方法
- Java性能优化指南系列(一):概述和性能测试方法
- Java性能优化指南系列(一):概述和性能测试方法
- Android 性能优化方案大全
- 【58沈剑架构系列】多库多事务一致性优化方案
- MySQL5.7第8章翻译系列——8.1 优化概述
- ORACLE SQL性能优化系列 (六)
- kvm性能优化方案---cpu/内存/磁盘/网络
- Oracle Performance Tuning Overview 翻译(Oracle性能优化概述 自己的中英文比对翻译)
- Linux性能优化和监控系列(三) 分析Memory使用状况
- Android性能优化系列之布局优化
- SQL Server------性能监测和优化概述
- 优化网站性能必备的6种架构方案,你知道吗?
- Android性能优化典范系列
- PLSQL_性能优化工具系列16_Best Practices: Proactively Avoiding Database
- .NET垃圾回收(GC)机制性能优化方案
- (转)SQL Server 2005 性能优化实战系列(文章索引)
- sql server08 查询优化系列 3-1 sql 查询性能分析 sql profiler
- sql server08 查询优化系列 3-2 sql 查询性能分析