Example #1
0
 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);
     }
 }
Example #2
0
 public static void ClearCache(this Repository repository)
 {
     CacheManagerFactory.ClearWithNotify(repository.GetKey());
 }