protected bool reflashDictCache() { string path = Server.MapPath(""); CacheBiz cacheBiz = CacheBiz.GetInstant(path); return(cacheBiz.reflashDictCache()); }
protected void Page_Load(object sender, EventArgs e) { string path = Server.MapPath(""); DataBiz dataBiz = DataBiz.GetInstant(); //dataBiz.ImportBrandList(); CacheBiz cacheBiz = CacheBiz.GetInstant(path); cacheBiz.reflashDictCache(); //cacheBiz.reflashHotelCache(); //cacheBiz.reflashBrandCache(); }
protected void Page_Load(object sender, EventArgs e) { string path = Server.MapPath(""); DataBiz dataBiz = DataBiz.GetInstant(); //dataBiz.ImportBrandList(); AdminBiz adminBiz = AdminBiz.GetInstant(); if (!adminBiz.isAuthority()) { Response.Redirect(WebUtil.GetWebRootPath() + "/Admin/System/Login"); } CacheBiz cacheBiz = CacheBiz.GetInstant(path); cacheBiz.reflashDictCache(); cacheBiz.reflashGeoCache(); //cacheBiz.reflashRoleCache(); //cacheBiz.reflashHotelCache(); System.Configuration.ConfigurationManager.AppSettings["ZDSL.Biz.auto.order"] = "Y"; }