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(); }
public void Save(Location location) { _internalRepository.Save(location); _lazyCache.ClearLocationNetworks(); //TODO: Isnt location already cleared on save? ? }