gpt4 book ai didi

sitecore - 如何完全禁用 Sitecore Analytics

转载 作者:行者123 更新时间:2023-12-04 14:12:54 25 4
gpt4 key购买 nike

我们在生产服务器上遇到 cpu 问题。在使用 jetbrains cpu profiler 进行分析后,我们注意到程序集中的一些函数 Sitecore.Analytics被处决。

这有点奇怪,因为我们在 de config 文件中禁用了所有与分析相关的配置。

在查看 /sitecore/admin/showconfig.aspx 之后我们注意到还有很多 Sitecore.Analytics此配置中的相关配置,而这些在我们的配置文件中已停用。

例如

在文件/App_Config/Include/EventHandlers.config配置如下所示:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<events timingLevel="custom">
</events>
</sitecore>
</configuration>

在查看 showconfig.aspx 时它看起来像这样:
<events timingLevel="custom">
<event name="forms:save"/>
<event name="item:saved">
<handler type="Sitecore.Analytics.Data.Items.ItemEventHandler, Sitecore.Analytics" method="OnItemSaved"/>
<handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
</event>
<event name="item:deleted">
<handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
</event>
<event name="media:request">
<handler type="Sitecore.Analytics.Media.MediaRequestEventHandler, Sitecore.Analytics" method="OnMediaRequest"/>
</event>
</events>

有谁知道为什么这些仍然返回 showconfig.aspx ?
有没有办法完全删除/禁用 sitecore 分析模块?

最佳答案

是的。将/App_Config/Include 目录中 Sitecore.Analytics 的 3 个配置文件重命名为 *.config 以外的其他文件

这3个文件是:

  • Sitecore.Analytics.config
  • Sitecore.Analytics.ExcludeRobots.config
  • Sitecore.Analytics.RobotDetection.config

  • (可能会因版本而有所不同,但它们都以 Sitecore.Analytics 开头)。

    将它们重命名为:
  • Sitecore.Analytics.config.disabled
  • Sitecore.Analytics.ExcludeRobots.config.disabled
  • Sitecore.Analytics.RobotDetection.config.disabled
  • 关于sitecore - 如何完全禁用 Sitecore Analytics,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24300872/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com