Example #1
0
 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");
     }
 }
Example #2
0
 public static SiteSettings GetSiteSettings(int distributorUserId)
 {
     return(SiteSettingsProvider.Instance().GetDistributorSettings(distributorUserId));
 }