Sitecore MVC – Custom Vary By Cache Options

Sitecore, by default, provides varies options like Vary by Data, Vary by Query String to enable HTML cache (more information about Sitecore caching could be found here). Sometimes none of these options (based on component built type) help the component to get cached by Sitecore cache.

In this article I will describe how to introduce custom VaryByCache option. It’s pretty simple.

First of all, let’s create a new template where all custom VaryByCache options will be presented.

varybycache-template-example
Sitecore VaryByCache template

Continue reading “Sitecore MVC – Custom Vary By Cache Options”

How to add a custom button into the Rich Text Editor

This is the fourth post in the series about Rich Text Editor (RTE) in Sitecore. The first post which was about the basics of setting up the RTE could be found here.

Sitecore is an incredibly good platform that provides a lot of functionality out of the box, but the greatest thing about Sitecore is that if there is something you’d like to customize, there’s always a way to do it. I’m going to walk through the process of adding a custom piece of functionality to Sitecore’s Rich Text Editor. There are a lot of reasons you would want to do this but for this example we’ll build a simple text insertion demo that you can expand upon.

Continue reading “How to add a custom button into the Rich Text Editor”

Sitecore caching

In this post I would like to describe different levels of Sitecore caches. Cache plays a vital role in website performance. So, it is really important to understand how Sitecore cache works, from which parts consists and how it could be configurated. If we master these skills it would be easy to do performance turning using cache settings.

There are some useful tools which can show us the structure and content of Sitecore cache Continue reading “Sitecore caching”

Sitecore and Powershell: Jack of all trades

Sitecore and Powershell: Jack of all trades

Several months ago I have been setting up a few scripts so that I can automate the creation / adjustment of new / existing solutions for customers and also make it easy for other developers/front-enders to start working on new projects.

Powershell has been invaluable in setting up these processes and I’ve been amazed on a daily basis just how powerful the language can be. Your everyday mundane tasks such as renaming a group of files, finding and replacing text or even attaching databases can become automated.

Also, I want mention that developer from time to time should do disposable actions to adjust solution and fix some wrong behavior. With the help of Powershell there is no need to prepare some workaround of how to deliver such fixes. You just write Powershell code, test it and then run on LIVE.

That’s why I’m  also a big fan of Adam Najmanowicz’s Sitecore Powershell Extensions!

Continue reading “Sitecore and Powershell: Jack of all trades”