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