MVCプレゼンテーションを使用するページの応答時間の遅延


説明

Sitecoreでは、MVCプレゼンテーションのレンダリング パフォーマンスを計測するのに下記のプロセッサーを使用しています:

これらのプロセッサーを無効にすることで、レンダリング時間の短縮およびページの応答時間の最適化が実現できます。

解決策

この問題を解決するには、前面インスタンス(すなわちContent Delivery)でのプロファイリングを無効にする設定パッチ ファイルを作成して「\App_config\Include\zzz」フォルダーに配置してください:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/">
    <sitecore role:require="ContentDelivery" env:require="!Profiling">
        <pipelines>
            <mvc.renderPlaceholder>
                <processor type="Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.InitializeProfiling, Sitecore.Mvc">
                    <patch:delete />
                </processor>
            </mvc.renderPlaceholder>
            <mvc.renderRendering>
                <processor type="Sitecore.Mvc.Pipelines.Response.RenderRendering.InitializeProfiling, Sitecore.Mvc">
                    <patch:delete />
                </processor>
                <processor type="Sitecore.Mvc.Pipelines.Response.RenderRendering.StartStatisticRecording, Sitecore.Mvc">
                    <patch:delete />
                </processor>
                <processor type="Sitecore.Mvc.Pipelines.Response.RenderRendering.RecordStatistic, Sitecore.Mvc">
                    <patch:delete />
                </processor>
            </mvc.renderRendering>
        </pipelines>
    </sitecore>
</configuration>