1.
在MOSS 2007中,Object Cache是默认启用的,它默认使用的内存大小是100MB。但是这个设置是一个基于Site Collection的设置,如果环境中有许多的Site Collection,Object Cache反而会损害性能。所以我们总是建议用户,对这个设置做细致的性能测试,以取得最合理的设置。
在SharePoint 2010中,这个情况会得到些许的改善。Object Cache仍是基于Site Collection的设置,但是SharePoint 2010允许我们从Web Application level对可使用的最大内存做出限制。如果察看SharePoint 2010的Web.config,一个新的Element是:<ObjectCache maxSize="100" />
。通过它,我们可以设定这个Web App所能用于ObjectCache的最大内存。如果我们将这个值设置为1GB,不管这个Web App有多少个Site Collection,也不管每个Site Collection的Object Cache设置如何,Object Cache所能使用的最大内存将不会超过1GB。
2.
在SharePoint 2010中,Output Cache profile也可以在Web App level设置了。并且在Web App level设置的Cache profile,会overwrite掉在Site Collection上设置的Profile值。这样,管理员如果想统一各个Site Collection的Output Cache设置,直接改Web.config就好了。
<OutputCacheProfiles useCacheProfileOverrides="false" varyByHeader="" varyByParam="*" varyByCustom="" varyByRights="true" cacheForEditRights="false" />
3.
BlobCache加了好多的扩展名。
<BlobCache location="C:BlobCache14" path=".(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv)$" maxSize="10" enabled="false" />