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