Orchard性能调优

原文地址:http://docs.orchardproject.net/Documentation/Optimizing-Performance-of-Orchard-with-Shared-Hosting


简要翻译:

 

信任级别

Orchard原生态设置是完全信任模式的。最小信任不再被支持。

<trust level="Full" originUrl="" />

Debug/Release模式

生产机需要运行在debug模式下. 确保程序已release模式编译发布,Orchard.Web模块的web.config文件也要指明release模式

<compilation debug="false" targetFramework="4.0"
  batch="true" numRecompilesBeforeAppRestart="250">

共享服务vs专用服务vs云服务

(略)

用 SQL Server替换SQL Server Compact

文件系统

保证文件系统的高速访问也能提升Orchard性能

增加内存

应用程序池的回收设置(定时回收)

多租户(Multi-Tenancy)模块的使用

Orchard has an optional module called Multi Tenancy that enables more than one site to exist on the same Orchard instance. The data for the sites is separated, and for all practical purposes they are distinct sites. There are a few limitations on what each tenant can do, such as installing new modules and themes.

The advantage of a multi-tenant installation over multiple instances of Orchard is that there is only one app domain, which hosting companies favor because it improves site density considerably. It also has advantages for each of the multi-tenant sites, because a hit on any of the tenants keeps the app domain alive. Therefore, even sites that receive very few hits will remain responsive if they share the app domain with enough other sites.

This results in the seemingly paradoxical notion that more sites on a single app domain might perform better in some cases than a single site per app domain. In shared hosting scenarios in particular, this configuration is optimal if it is an option.



尽量不要安装不需要用到的模块

文件夹的深度不要太深,尽量扁平化,用点号来做层次表示(类似java的包管理)







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值