Clearing an HTML cache based on published items for a multisite environment
Each Sitecore site contains its own HTML cache; its full utilization is really necessary to improve website performance. On each publish, Sitecore clears the HTML cache on the CD server of all the sites specified in the publish:end:remote
event's HtmlCacheClearer
handler as follows:
It is not a good practice that we clear the cache of all sites when publishing happens for a single site item as this can impact the performance of all the sites, and after this, each site will go to build an HTML cache again. This becomes critical when we have a large number of sites and publishing ...
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.