Esempio n. 1
0
        protected bool reflashDictCache()
        {
            string   path     = Server.MapPath("");
            CacheBiz cacheBiz = CacheBiz.GetInstant(path);

            return(cacheBiz.reflashDictCache());
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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";
        }