public static void Save(SiteSettings settings) { if (settings.IsDistributorSettings) { SiteSettingsProvider.Instance().SaveDistributorSettings(settings); HiCache.Remove(string.Format("DataCache-Settings:{0}", settings.SiteUrl)); } else { SaveMasterSettings(settings); HiCache.Remove("FileCache-MasterSettings"); } }
public static SiteSettings GetSiteSettings(int distributorUserId) { return(SiteSettingsProvider.Instance().GetDistributorSettings(distributorUserId)); }