This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:useApplicationInsights="http://www.sitecore.net/xmlconfig/useApplicationInsights/"> | |
<sitecore> | |
<sc.variable name="logFilterRegExPattern" value="^.*(Job started|Job ended|document not found page|Cache created|Solr Query).*$" /> | |
<log4net> | |
<!--AZ Fallback appender - Logs in log file--> | |
<!--Delete First--> | |
<appender name="AzureFallbackAppender" type="Sitecore.ExperienceContentManagement.Administration.Logging.AzureFallbackAppender, Sitecore.ExperienceContentManagement.Administration"> | |
<patch:delete /> | |
</appender> | |
<!--Add new with filter by SCBasics Patch file--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Path "master:\layout\Renderings" -Recurse | | |
Where-Object { $_.Cacheable -match "1"} | | |
Select-Object -Property Name, ID, Path, Cacheable, ClearOnIndexUpdate, VaryBy* | | |
Sort-Object -Property Name | Show-ListView | |
# https://gist.github.com/michaellwest/b4352327d13447c427cf | |
# https://neilkillen.com/2020/08/31/tips-for-monitoring-and-tuning-sitecore-cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<linkManager> | |
<providers> | |
<add name="localizedProvider"> | |
<patch:attribute name="lowercaseUrls">true</patch:attribute> | |
</add> | |
</providers> | |
</linkManager> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore; | |
using Sitecore.Abstractions; | |
using Sitecore.DependencyInjection; | |
using Sitecore.Diagnostics; | |
using Sitecore.Mvc.Pipelines.Response.RenderRendering; | |
using Sitecore.Mvc.Presentation; | |
using Sitecore.XA.Foundation.Abstractions.Configuration; | |
using Sitecore.XA.Foundation.Multisite.Extensions; | |
using Sitecore.XA.Foundation.Presentation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/"> | |
<sitecore role:require="Standalone or ContentManagement" search:require="Solr"> | |
<contentSearch> | |
<!--Somehow following two indexes has prefix "sitecore-" in their name and our Solr cores are not made that way. | |
For naming consistency updating core names--> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<index id="sitecore_testing_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> | |
<param desc="core" patch:instead="param[@desc='core']">$(id)</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "Please provide authentication information." | |
$uname = Read-Host -Prompt 'Username - ' | |
$password = Read-Host -AsSecureString -Prompt 'Password - ' | |
$password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($password)) | |
Write-Host "Asking for an authorization token for $uname..." | |
Write-Host | |
$body = @{ | |
username=$uname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<settings> | |
<setting name="MailServer" set:value="#{SendGrid.SMTP.server}" /> | |
<setting name="MailServerUserName" set:value="#{SendGrid.SMTP.username}" /> | |
<setting name="MailServerPassword" set:value="#{SendGrid.SMTP.password}"/> | |
<setting name="MailServerPort" set:value="#{SendGrid.SMTP.port}" /> | |
</settings> | |
</sitecore> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM [dbo].[Properties] | |
WHERE [Key] Like '%SPD_InstallerState%' | |
DELETE FROM [dbo].[Properties] | |
WHERE [Key] Like '%SPD_InstallerState%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
private void PrintInfo() { | |
Response.Write("Country " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.Country); | |
Response.Write("<br/>"); | |
Response.Write("AreaCode " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.AreaCode); | |
Response.Write("<br/>"); | |
Response.Write("City " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.City); | |
Response.Write("<br/>"); | |
Response.Write("XFWFOR " + HttpContext.Current.Request.Headers["X-Forwarded-For"]); | |
Response.Write("<br/>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<tracking> | |
<sharedSessionState> | |
<config type="Sitecore.Analytics.Tracking.SharedSessionState.SharedSessionStateConfig, Sitecore.Analytics"> | |
<param desc="timeoutBetweenLockAttempts">200</param> | |
</config> | |
</sharedSessionState> | |
</tracking> | |
</sitecore> |
NewerOlder