This file contains hidden or 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
//cacheMiddleware for Node-level output caching | |
const mcache = require('memory-cache'); | |
const config = require('./config'); | |
const https = require('https'); | |
const CACHE_TIME_MS = 8 * 60 * 60 * 1000; // 8h | |
const POLLING_INTERVAL_MS = 5000; | |
const STATS_LOGGING_INTERVAL_MS = 60000; | |
// List of urls that will be skipped during caching |
This file contains hidden or 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 Sitecore.Abstractions; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.Linq; | |
using Sitecore.ContentSearch.Linq.Utilities; | |
using Sitecore.Data.Items; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using System.Web.Http.Cors; |
This file contains hidden or 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:set="http://www.sitecore.net/xmlconfig/set/" | |
xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore> | |
<contentSearch> | |
<indexConfigurations> | |
<defaultSolrIndexConfiguration type="Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration, Sitecore.ContentSearch.SolrProvider"> | |
<documentOptions type="Sitecore.ContentSearch.SolrProvider.SolrDocumentBuilderOptions, Sitecore.ContentSearch.SolrProvider"> | |
<fields hint="raw:AddComputedIndexField"> |
This file contains hidden or 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
<%@ Page Language="C#" AutoEventWireup="true"%> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
This file contains hidden or 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
// Important: Get consent from user first before identifying. Make sure all applicable rules and regulations are followed correctly. | |
var service = new TrackingService(); | |
service.IdentifyAs("e-mail", "[email protected]"); | |
service.SetContactName("John", "Doe"); | |
service.SetContactEmail("[email protected]"); |
This file contains hidden or 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" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<customSolrManagedSchema> | |
<commands applyToIndex="my_custom_index"> | |
<add-or-replace-field-type> | |
<name>ngram</name> | |
<class>solr.TextField</class> |
This file contains hidden or 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
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<%@ Import Namespace="System.Data.SqlClient" %> | |
<%@ Import Namespace="System.Text" %> | |
<%@ Import Namespace="System.Configuration" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> |
This file contains hidden or 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
# String Replace inside Placeholder Keys | |
$oldPlaceholderString = "da653398-c1bc-4587-be48-0ae26b07ba9e" | |
$newPlaceholderString = "bfd7aec3-8655-4aff-9357-da7529754aad" | |
$rootItem = "master:/sitecore/content/MyHome/" | |
$language = "en" | |
$defaultLayout = Get-LayoutDevice "Default" | |
# Toggle for whether to update Shared or Final Layout | |
$useFinalLayout = $False | |
# If set to true, the script will only list the renderings that need fixing, rather than fixing them. |
This file contains hidden or 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/"> | |
<sitecore> | |
<settings> | |
<setting name="MyProject.Multisite.SiteRootTemplateId" value="{161227F1-2BC1-4346-B833-D9DBED0B7104}"/> | |
<setting name="MyProject.Multisite.SiteRootToken" value="$siteRoot"/> | |
</settings> | |
<pipelines> | |
<getLookupSourceItems> | |
<processor type="MyProject.Multisite.GetLookupSourceItems.ReplaceSiteRootToken, MyProject" | |
patch:before="processor[1]" /> |
This file contains hidden or 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
# | |
# Powershell script that reads server role configs from Sitecore's excel file | |
# and checks a specified directory to ensure all config files are set up correctly. | |
# | |
# https://doc.sitecore.net/sitecore_experience_platform/setting_up_and_maintaining/xdb/configuring_servers/configure_a_content_delivery_server | |
# https://doc.sitecore.net/sitecore_experience_platform/setting_up_and_maintaining/xdb/configuring_servers/configure_a_processing_server | |
# | |
# | |
$xlsFile = "c:\temp\Config_Enable-Disable_Sitecore_8.1_upd3.xlsx" |
NewerOlder