Note: This article is actual for Org Chart version 2.2.11 – 2.2.24. Version 2.2.26 is switched to client side caching.
Version 2.2.11 and higher for SharePoint On-Premises provides ability to cache user profiles using server side API. Thus, you can write simple warmup PowerShell script for Org Chart. The API provides two methods:
- Plumsail.OrgChart.Caching.CacheManager.InitUserProfilesCache(string webUrl) – initializes cache for User Profiles data source.
- Plumsail.OrgChart.Caching.CacheManager.ClearUserProfilesCache(string webUrl) – clears cache for User Profiles data source.
Thus you can initialize or clear user profiles cache for Org Chart. Response time of Org Chart ususally is good, but if you deal with large structures or want to make response time even better you can utilize this approach. It works for User Profiles data source only.
I created two PowerShell scripts for you:
Posted in: Products