Storing external content using a custom cache

While developing a Sitecore solution, you may sometimes face a situation where you have to fetch some data from external resources frequently. So, you want to save them in a cache for some time as they get changed frequently. If you have CSS and JS items in Sitecore and want to cache their merged and minified content output to avoid doing it on every request, you can use Sitecore's custom cache.

In this recipe, you will learn how to use Sitecore's custom cache mechanism.

Getting Ready

In this recipe, we will consider a case where we want to show some share price details from an external web service. Here, to gain better performance of the website, we will avoid fetching the share price on every request ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.