Monday, 22 May 2017

Clearing application cache on Sitecore publish

This blog post will talk about a general problem which we face or may have faced while implementing Sitecore solutions where we have used any custom or application level caching.

One most common example where we face this issue is while setting our sublayout/rendering as cacheable in code.


The above screenshot has a property "Cacheable=True", which caches the "Test.ascx" sublayout.
The above caching is maintained even after we publish the sublayout or even the whole site.

Saturday, 6 May 2017

Sitecore Search Faceting & Date range faceting

This blog post is divided in following 2 parts:

Part 1: Search faceting and Date Range search facet available out of the box.
Part 2: Date range faceting based on custom DateTime Field.

Search facets help us filter the search results and limit the search results after running the actual search.
Sitecore Lucene and Solr both support faceting.
Sitecore 8.2 and some other lower versions provide Out of the box faceting.

We can see these OOB facets under:
Location: /sitecore/system/Settings/Buckets/Facets

You can read about them here.

This post will discuss about one of the above facet i.e. “Date range facet “.
We will see below how the date range facet works and how we can leverage this date range facet in our project.