Watch out, IsDerived() is killing your server!

Last week we had a problem with one of our clients with their Sitecore site on Azure Paas. The site has been getting slower over time and Azure statistics were showing very high CPU usages. Long story short, one of the major bottlenecks we had was the use of IsDerived(). It was used quite frequently … Continue reading Watch out, IsDerived() is killing your server!

Advertisements

Sc101: Dealing with dependencies between Helix features

A very common scenario that occurs in every project that leaves 'new to Helix' developers scratching their heads is what to do when one features depends on another! I'm going to be talking about different approaches of dealing with the above scenario Introduction We've all seen Habitat and how it is structured, it looks really … Continue reading Sc101: Dealing with dependencies between Helix features

‘Value cannot be null` error when editing presentation details

I'll be very briefly sharing the error that very weirdly happened twice in the last couple of weeks in two separate Sitecore projects with different team members working on them. Problem Description You are required to edit the presentation details of a specific item and when you click on edit in Shared Layout or Final Layout you get … Continue reading ‘Value cannot be null` error when editing presentation details

Making use of Sitecore’s Switcher to manage logger contexts

I'm sure you've used Sitecore.Common.Switcher<T> in your Sitecore projects numerous times, for example when disabling all security checks when editing items in code using the SecurityDisabler: using(new SecurityDisabler()){ // Edit Sitecore items } SecurityDisabler indirectly inherits Sitecore.Common.Switcher<T> which allows such behavior. There are other examples such as SiteContextSwitcher or DatabaseSwitcher. The cool thing about this is that it allows … Continue reading Making use of Sitecore’s Switcher to manage logger contexts

Setting up SXA Search Box with Solr Suggest

SXA is AWESOME! One of the features I personally liked is the built-in search functionality that requires minimal configuring and no coding (for most basic cases). In this blog post I will go through setting up the 'Search Box' component with Suggest functionality (predictive). I'm using Sitecore 9.0.1 with SXA 1.6 and Solr 6.6.2. Configuring … Continue reading Setting up SXA Search Box with Solr Suggest

Organizing Solr’s schema.xml for Sitecore using PowerShell

When setting up your Solr cores for the first time for a new project, several steps have to be done to prepare your schema.xml (or managed-schema). One of them is moving all <field> and <dynamicField> nodes under a new <fields> node and moving all <fieldType> nodes under a new <types> node. This process is very … Continue reading Organizing Solr’s schema.xml for Sitecore using PowerShell