Skip to content

Instantly share code, notes, and snippets.

@pbering
Last active January 29, 2023 12:20
Show Gist options
  • Select an option

  • Save pbering/e3866e452c75e030e710f62d267dbb4e to your computer and use it in GitHub Desktop.

Select an option

Save pbering/e3866e452c75e030e710f62d267dbb4e to your computer and use it in GitHub Desktop.

Revisions

  1. pbering revised this gist Sep 17, 2018. 2 changed files with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions Web.CM.config.xdt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <location path="sitecore" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing">
    <system.webServer xdt:Transform="InsertIfMissing">
    <staticContent xdt:Transform="InsertIfMissing">
    <clientCache xdt:Transform="InsertIfMissing" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
    </staticContent>
    </system.webServer>
    </location>
    <location path="temp" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing">
    <system.webServer xdt:Transform="InsertIfMissing">
    <staticContent xdt:Transform="InsertIfMissing">
    <clientCache xdt:Transform="InsertIfMissing" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
    </staticContent>
    </system.webServer>
    </location>
    </configuration>
    File renamed without changes.
  2. pbering created this gist Sep 17, 2018.
    125 changes: 125 additions & 0 deletions Performance.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,125 @@
    <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
    <sitecore>
    <pipelines>
    <initialize>
    <processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel">
    <patch:delete />
    </processor>
    <processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel">
    <patch:delete />
    </processor>
    <processor type="Sitecore.Analytics.Pipelines.Initialize.ShowXdbInfo, Sitecore.Analytics">
    <patch:delete />
    </processor>
    <processor type="Sitecore.Pipelines.Loader.DumpConfigurationFiles, Sitecore.Kernel">
    <patch:delete />
    </processor>
    </initialize>
    </pipelines>

    <hooks>
    <hook type="Sitecore.Diagnostics.MemoryMonitorHook, Sitecore.Kernel">
    <patch:delete />
    </hook>
    <hook type="Sitecore.Diagnostics.HealthMonitorHook, Sitecore.Kernel">
    <patch:delete />
    </hook>
    </hooks>

    <scheduling>
    <agent type="Sitecore.Tasks.CounterDumpAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.UrlAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.CloneNotificationsCleanupAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.CleanupFDAObsoleteMediaData">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.WebDAVOptionsCleanupAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.PathAnalyzer.Client.Tasks.HelpUpdateAgent,Sitecore.PathAnalyzer.Client">
    <patch:delete />
    </agent>
    <agent type="Sitecore.PathAnalyzer.Client.Tasks.HelpUpdateAgent,Sitecore.PathAnalyzer.Client" desc="PageExplorer Help">
    <patch:delete />
    </agent>
    <agent type="Sitecore.PathAnalyzer.Client.Tasks.HelpUpdateAgent,Sitecore.PathAnalyzer.Client" desc="PathAnalyzer Help">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.PublishAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.Tasks.HtmlCacheClearAgent">
    <patch:delete />
    </agent>
    <agent type="Sitecore.ListManagement.Operations.UpdateListOperationsAgent, Sitecore.ListManagement">
    <patch:delete />
    </agent>
    </scheduling>

    <watchers>
    <media>
    <patch:delete />
    </media>
    <xsl>
    <patch:delete />
    </xsl>
    <layout>
    <patch:delete />
    </layout>
    <config>
    <patch:delete />
    </config>
    </watchers>

    <databases>
    <database id="core">
    <dataProviders>
    <dataProvider>
    <prefetch>
    <cacheSize>300MB</cacheSize>
    </prefetch>
    </dataProvider>
    </dataProviders>
    </database>
    </databases>

    <settings>
    <setting name="Xdb.Tracking.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="Counters.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="ItemCloning.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="DeviceDetection.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="Analytics.PerformLookup">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="Media.RequestProtection.Logging.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="WebDAV.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="ContentTesting.AutomaticContentTesting.Enabled">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="WebEdit.ShowNumberOfLockedItemsOnButton">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    <setting name="ContentEditor.CheckHasChildrenOnTreeNodes">
    <patch:attribute name="value">false</patch:attribute>
    </setting>
    </settings>
    </sitecore>
    </configuration>
    24 changes: 24 additions & 0 deletions Web.config.xdt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <system.web>
    <compilation xdt:Transform="SetAttributes" optimizeCompilations="true" batch="false" enablePrefetchOptimization="true" profileGuidedOptimizations="All" />
    </system.web>
    <system.webServer>
    <modules xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)" runAllManagedModulesForAllRequests="false">
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="SitecoreUploadWatcher" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="SitecoreXslWatcher" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="SitecoreLayoutWatcher" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="SitecoreConfigWatcher" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="MediaRequestSessionModule" />
    </modules>
    <handlers>
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="WebDAVRoot" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="WebDAVRoot64" />
    <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="Sitecore.WebDAVMediaRequestHandler" />
    </handlers>
    </system.webServer>
    <runtime>
    <generatePublisherEvidence xdt:Transform="InsertIfMissing" />
    <generatePublisherEvidence xdt:Transform="SetAttributes" enabled="false" />
    </runtime>
    </configuration>