Example #1
0
 public static void FullReload(this IAppCache cache)
 {
     log.Info("Full cache reload");
     // TODO: Maybe divide this function in to more granularity
     cache.ClearSipAccounts();
     cache.ClearRegisteredUserAgents(); // Make sure that this one is cleared if user agents change
     cache.ClearOngoingCalls();
     cache.ClearCallHistory();
     cache.ClearLocationNetworks();
     cache.ClearSettings();
     cache.ClearAvailableFilters();
     cache.ClearProfiles();
     cache.ClearProfileGroups();
     cache.ClearUserAgents();
 }
Example #2
0
 public void Save(List <Setting> settings, string userName)
 {
     _internalRepository.Save(settings, userName);
     _lazyCache.ClearSettings();
 }