Esempio n. 1
0
        public string Clear_POST()
        {
            switch (base.Request["for"])
            {
            case "reboot":
                HttpRuntime.UnloadAppDomain();
                return(base.ReturnSuccess("网站正在重启..."));

            case "cache":
                PageVariable.ResetBuilt();
                return(base.ReturnSuccess("缓存清理成功"));
            }
            return(base.ReturnSuccess());
        }
Esempio n. 2
0
        public string Clear_POST()
        {
            switch (Request.Form("for"))
            {
            case "reboot":
                Cms.Reload();
                return(ReturnSuccess("网站正在重启..."));

            case "cache":
                PageVariable.ResetBuilt();
                Cms.Cache.Reset(null);
                Cms.Template.Reload();
                return(ReturnSuccess("缓存清理成功"));
            }

            return(ReturnSuccess());
        }