Category: Coding

  • Making item-based webhook events work on Sitecore 10.3

    A great new feature on Sitecore XM Cloud and also XM/XP 10.3+ is the possibility to set up Webhooks for a variety of events eg. item_saved, item_created etc. There is a limitation though if you’re on Platform DXP (10.3+): Let’s say we set up a webhook which informs the product owner whenever an author modifies…

  • Don‘t cache renderings containing placeholders

    Sitecore‘s „HTML Cache“ feature on renderings has been a great tool since the early days of Sitecore. While in the world of headless, we‘re actually caching JSON instead of HTML, the functionality of this cache remains the same: There are caching variants and more but I won‘t go deeper into this topic as it has…

  • Customizing Headless Proxy Output Caching

    When building a site on Sitecore Headless / JSS you’ll eventually end up hosting it on a Headless Proxy Node instance. The Headles Proxy will perform server-side rendering of the page HTML for initial requests i.E. when you hit F5 (browser refresh). Subsequent requests are then usually rendered in the browser. So far so good.…

  • Make Long Running Scheduled Agents Async

    Make Long Running Scheduled Agents Async

    Sitecore’s Scheduled Agents and Tasks have been around forever and are well-known members of the XM suite. Less known is a gotcha you might run into when implementing long running operations (i.E. background import/export, bulk updates,…)

  • Why silent saving with a processing server is a bad idea

    This post highlights why silent saving, EventDisabler or using BulkUpdateContext can lead to inconsistent data on a multi-CM environment i.E. when using a processing server.

  • Querying generated Template Models with Glass

    I have written some helper methods for working with generated Template Models and Glass.Mapper. Main goal is to make it easy for developers to query the Sitecore database using generated Template models. See Mike’s post for details on what Template Models are. Examples Let’s start with this fictional content tree: Now, let us get the…

  • Glass Mapper: Does the number of mapped fields have a performance impact?

    Recently at work, the discussion arose if the number of fields mapped from Sitecore Items to our models would have a performance impact. The question was if we should limit the number of mapped properties in our IGlassBase interface to gain performance. I did a simple test by mapping an item to a test interface (IGlassBaseTest) and…