原文地址: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
文件系统
增加内存
应用程序池的回收设置(定时回收)
多租户(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.