Skip to content

Instantly share code, notes, and snippets.

@AdamNaj
Last active May 10, 2023 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamNaj/f1095af3f9da3c52826176daf5dcf65a to your computer and use it in GitHub Desktop.
Save AdamNaj/f1095af3f9da3c52826176daf5dcf65a to your computer and use it in GitHub Desktop.
Optimize your Sitecore instance for Development. Drop files in: <website>\App_Config\Include\zzzz and rename to enable as needed.
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" >
<sitecore>
<hooks>
<hook type="Sitecore.Diagnostics.HealthMonitorHook, Sitecore.Kernel">
<patch:delete />
</hook>
<hook type="Sitecore.Diagnostics.MemoryMonitorHook, Sitecore.Kernel">
<patch:delete />
</hook>
</hooks>
<pipelines>
<contentSearch.queryWarmup patch:source="Sitecore.ContentSearch.config">
<processor type="Sitecore.ContentSearch.Pipelines.QueryWarmups.RunQueries, Sitecore.ContentSearch">
<patch:delete />
</processor>
</contentSearch.queryWarmup>
<initialize>
<processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Client">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.InitializeScheduler, Sitecore.Kernel">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel">
<patch:delete />
</processor>
<!-- Removing again, now for content testing :-) -->
<processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Client">
<patch:delete />
</processor>
</initialize>
<!-- Removing the whole getTranslation pipeline and re-adding empty one to get rid of the errors in logs -->
<getTranslation>
<patch:delete/>
</getTranslation>
<getTranslation />
</pipelines>
<settings>
<setting name="Counters.Enabled" set:value="false" />
<setting name="XA.Foundation.Theming.AssetsOptimizationSwitch.Enabled" set:value="true"/>
<setting name="PublishingServiceUrlRoot">http://sitecore.publishing/</setting>
<setting name="XA.Feature.CreativeExchange.SkipServerCertificateValidation" set:value="true"/>
<!-- !!!WARNING!!! this may have effect on parts of functionality such as index update strategies. Use with caution. -->
<setting name="EnableEventQueues" set:value="false" />
</settings>
</sitecore>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:security="http://www.sitecore.net/xmlconfig/security/">
<sitecore>
<sites>
<site name="shell">
<patch:attribute name="enableItemLanguageFallback">true</patch:attribute>
<patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
</site>
<site name="website">
<patch:attribute name="enableItemLanguageFallback">true</patch:attribute>
<patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
</site>
</sites>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<powershell>
<services>
<remoting>
<patch:attribute name="enabled">true</patch:attribute>
<authorization>
<add Permission="Allow" IdentityType="User" Identity="sitecore\admin" />
</authorization>
</remoting>
<restfulv2>
<patch:attribute name="enabled">true</patch:attribute>
</restfulv2>
</services>
<userAccountControl>
<gates>
<gate name="ISE">
<patch:delete/>
</gate>
<gate name="Console">
<patch:delete/>
</gate>
<gate name="ItemSave">
<patch:delete/>
</gate>
<gate name="ISE" token="Permissive"/>
<gate name="Console" token="Permissive"/>
<gate name="ItemSave" token="Permissive"/>
</gates>
<tokens>
<token name="Permissive" expiration="00:00:00" elevationAction="Allow"/>
</tokens>
</userAccountControl>
</powershell>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<aggregation>
<module type="Sitecore.Analytics.Aggregation.AggregationModule" singleInstance="true">
<BackgroundServices hint="list:Add">
<patch:delete />
</BackgroundServices>
</module>
</aggregation>
<experienceAnalytics>
<reduce>
<subsystem type="Sitecore.Analytics.Core.Subsystem" singleInstance="true">
<BackgroundServices hint="list:Add">
<patch:delete />
</BackgroundServices>
</subsystem>
</reduce>
</experienceAnalytics>
<pathAnalyzer>
<subsystem type="Sitecore.Analytics.Core.Subsystem" singleInstance="true">
<BackgroundServices hint="list:Add">
<patch:delete />
</BackgroundServices>
</subsystem>
</pathAnalyzer>
<pipelines>
<createVisit>
<patch:delete />
</createVisit>
<!-- <startTracking>
<patch:delete />
</startTracking> -->
</pipelines>
<settings>
<setting name="Analytics.SuppressTrackingInitializationExceptions" set:value="false" />
<setting name="XConnect.Client.EnableDataExtraction" set:value="false" />
<setting name="Analytics.Enabled" set:value="false"/>
<setting name="Xdb.Enabled" set:value="false"/>
<setting name="Xdb.Tracking.Enabled" set:value="false"/>
<setting name="ExperienceExplorer.Enabled" set:value="false"/>
</settings>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<pipelines>
<group name="itemProvider">
<pipelines>
<getItem>
<processor type="Sitecore.ContentTesting.Pipelines.ItemProvider.GetItem.GetItemUnderTestProcessor, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</getItem>
</pipelines>
</group>
<mvc.getPageItem>
<processor type="Sitecore.ContentTesting.Mvc.Pipelines.Response.GetPageItem.PageLevelTestVariantResolver, Sitecore.ContentTesting.Mvc" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Mvc.Pipelines.Response.GetPageItem.ContentTestVariantResolver, Sitecore.ContentTesting.Mvc" >
<patch:delete />
</processor>
</mvc.getPageItem>
<mvc.requestBegin>
<processor type="Sitecore.ContentTesting.Mvc.Pipelines.Response.RequestBegin.EvaluateTestExposure, Sitecore.ContentTesting.Mvc" >
<patch:delete />
</processor>
</mvc.requestBegin>
<mvc.customizeRendering>
<processor type="Sitecore.ContentTesting.Mvc.Pipelines.Response.CustomizeRendering.SelectVariation, Sitecore.ContentTesting.Mvc" >
<patch:delete />
</processor>
</mvc.customizeRendering>
<getChromeData>
<processor type="Sitecore.ContentTesting.Pipelines.GetChromeData.GetRenderingTestVariations, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.GetChromeData.GetOptimizationRenderingChromeData, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</getChromeData>
<getContentEditorWarnings>
<processor type="Sitecore.ContentTesting.Pipelines.GetContentEditorWarnings.GetContentTestingWarnings, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</getContentEditorWarnings>
<getRenderingRules>
<processor type="Sitecore.ContentTesting.Pipelines.GetRenderingRules.FilterForEditingPersonalizeTest, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</getRenderingRules>
<httpRequestBegin>
<processor type="Sitecore.ContentTesting.Pipelines.HttpRequest.ForcedEditingTestCombination, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</httpRequestBegin>
<initialize>
<processor type="Sitecore.ContentTesting.Pipelines.Initialize.RegisterContentTestingCommandRoute, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.Initialize.RegisterWebApiRoutes, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</initialize>
<insertRenderings>
<processor type="Sitecore.ContentTesting.Pipelines.InsertRenderings.GetLatestTestingItem, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.InsertRenderings.Testing, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.InsertRenderings.PersonalizationExperienceResolver, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</insertRenderings>
<publishVersion>
<processor type="Sitecore.ContentTesting.Pipelines.PublishVersion.PublishTestingVersions, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</publishVersion>
<renderDeviceEditorRendering>
<processor type="Sitecore.ContentTesting.Pipelines.RenderDeviceEditorRendering.ComponentTestIndicator, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</renderDeviceEditorRendering>
<renderField>
<processor type="Sitecore.ContentTesting.Pipelines.RenderField.HighlightContentChange, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</renderField>
<renderLayout>
<processor type="Sitecore.ContentTesting.Pipelines.RenderLayout.EvaluateTestExposure, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.RenderLayout.PageLevelTestItemResolver, Sitecore.ContentTesting" >
<patch:delete />
</processor>
<processor type="Sitecore.ContentTesting.Pipelines.RenderLayout.ContentTestDataSourceResolver, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</renderLayout>
<renderLayoutGridRendering>
<processor type="Sitecore.ContentTesting.Pipelines.RenderLayoutGridRendering.ComponentTestIndicator, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</renderLayoutGridRendering>
<renderingRuleEvaluated>
<processor type="Sitecore.ContentTesting.Pipelines.RenderingRuleEvaluated.TestingRule, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</renderingRuleEvaluated>
<parseDataSource>
<processor type="Sitecore.ContentTesting.Pipelines.ParseDataSource.GetDataSourceItemByDataUri, Sitecore.ContentTesting" >
<patch:delete />
</processor>
</parseDataSource>
</pipelines>
<events>
<event name="item:saved" >
<handler type="Sitecore.ContentTesting.Events.PersonalizationTrackingHandler, Sitecore.ContentTesting" method="OnItemSaved">
<patch:delete />
</handler>
<handler type="Sitecore.ContentTesting.Events.GenerateScreenshot, Sitecore.ContentTesting" method="OnItemSaved">
<patch:delete />
</handler>
</event>
<event name="item:saved:remote" patch:source="Spe.config">
<handler type="Sitecore.ContentTesting.Events.GenerateScreenshot, Sitecore.ContentTesting" method="OnRemoteItemSaved">
<patch:delete />
</handler>
<handler type="Sitecore.ContentTesting.Events.GenerateScreenshot, Sitecore.ContentTesting" method="OnItemSaved">
<patch:delete />
</handler>
</event>
</events>
<contentSearch>
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="sitecore_testing_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<patch:delete />
</index>
<index id="sitecore_suggested_test_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<patch:delete />
</index>
<index id="sitecore_personalization_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<patch:delete />
</index>
</indexes>
</configuration>
</contentSearch>
<settings>
<setting name="ContentTesting.AutomaticContentTesting.Enabled" set:value="false" />
<setting name="ContentTesting.AlwaysShowTestCandidateNotification" set:value="false" />
</settings>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" >
<sitecore>
<settings>
<setting name="DeviceDetection.Enabled" set:value="false" />
</settings>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" >
<sitecore>
<settings>
<setting name="GeoIp.PerformLookup" set:value="false" />
</settings>
</sitecore>
</configuration>
<!--
IMPORTANT: This configuration file is not intended for any production Sitecore installation.
Purpose: This include file contains some experimental optimizations that can speed up start-up.
Please, review each of the patched elements below and consider if some of the optimizations should be commented out due to the specifics of your solution.
Enabling this file without taking into account the specifics of your solution can have unexpected consequences.
To enable this include file, rename it to have a ".config" extension.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<pipelines>
<getFieldValue>
<processor type="Sitecore.Pipelines.GetFieldValue.IsValidForLanguageFallback, Sitecore.Kernel" >
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.GetFieldValue.GetLanguageFallbackValue, Sitecore.Kernel" >
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.GetFieldValue.GetLanguageFallbackStandardValue, Sitecore.Kernel" >
<patch:delete />
</processor>
</getFieldValue>
<group name="itemProvider" groupName="itemProvider">
<pipelines>
<getItem>
<processor type="Sitecore.Pipelines.ItemProvider.GetItem.GetLanguageFallbackItem, Sitecore.Kernel" >
<patch:delete />
</processor>
</getItem>
<getVersions>
<processor type="Sitecore.Pipelines.ItemProvider.GetVersions.GetLanguageFallbackItemVersions, Sitecore.Kernel" >
<patch:delete />
</processor>
</getVersions>
</pipelines>
</group>
</pipelines>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment