public static void ClearCache(this Site site) { CacheManagerFactory.ClearWithNotify(site.GetKey()); CacheManagerFactory.DefaultCacheManager.Clear(site.GetKey()); foreach (var sub in Persistence.Providers.SiteProvider.ChildSites(site)) { ClearCache(sub); } }
public static void ClearCache(this Repository repository) { CacheManagerFactory.ClearWithNotify(repository.GetKey()); }