private void ClearSiteMapCache() { SiteMapManager.ClearCache(); }
protected void uxUpdateButton_Click(object sender, EventArgs e) { try { uxTaxConfig.Update(); uxProductImageSizeConfig.Update(); uxDisplay.Update(); uxRatingReview.Update(); uxGiftCertificate.Update(); uxWholesale.Update(); uxEmailNotification.Update(); uxUploadConfig.Update(); uxSeo.Update(); uxSystemConfig.Update(); uxAffiliateConfig.Update(); uxShippingTracking.Update(); uxDownloadCount.Update(); uxeBayConfig.Update(); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["UseCustomTimeZone"], uxUseTimeZoneDrop.SelectedValue); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["CustomTimeZone"], uxCustomTimeZoneDrop.SelectedValue); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["WebServiceAdminUser"], uxWebServiceAdminUserText.Text); AdminUtilities.LoadSystemConfig(); AdminUtilities.ClearCurrencyCache(); uxMessage.DisplayMessage(Resources.SetupMessages.UpdateSuccess); SiteMapManager.ClearCache(); PopulateControls(); SetUpUrlCultureID(); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["DownloadExpirePeriod"], uxDownloadExpirePeriodText.Text); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["AnonymousCheckoutAllowed"], uxAllowAnonymousCheckoutDropDown.SelectedValue); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["ShippingMerchantCountry"], uxMerchantCountryList.CurrentSelected); DataAccessContext.ConfigurationRepository.UpdateValue( DataAccessContext.Configurations["ShippingIncludeDiscount"], uxShippingIncludeDiscountDrop.SelectedValue); SetDefaultCurrency(); SystemConfig.Load(); UpdatePanel headerPanel = (UpdatePanel)WebUtilities.FindControlRecursive(this.Page, "uxHeaderUpdatePanel"); if (headerPanel != null) { Control paymentLink = (Control)WebUtilities.FindControlRecursive(headerPanel, "PaymentLink"); if (paymentLink != null) { paymentLink.Visible = DataAccessContext.Configurations.GetBoolValue("VevoPayPADSSMode"); headerPanel.Update(); } } } catch (Exception ex) { uxMessage.DisplayException(ex); } }