Exemple #1
0
        /// <summary>
        /// 刷新缓存
        /// </summary>
        public async Task <ActionResult> Reload()
        {
            using (var client = new Tuhu.Service.Config.HomePageClient())
            {
                var result = await client.RefreshAllCarProductListInfoAsync();

                return(result.Success ? Content("1") : Content("0"));
            }
        }
 public ActionResult Reload()
 {
     using (var client = new Tuhu.Service.Config.HomePageClient())
     {
         var result = client.RefreshHomePageCarActivityCache();
         result.ThrowIfException(true);
         return(result.Result ? Content("1") : Content("0"));
     }
 }
Exemple #3
0
        public async Task <ActionResult> Reload()
        {
            using (var client = new Tuhu.Service.Config.HomePageClient())
            {
                var result = await client.RefreshServiceEncyclopediasAsync();

                return(result.Success ? Content("1") : Content("0"));
            }
        }
 public ActionResult ReloadCache()
 {
     try
     {
         using (var client = new Tuhu.Service.Config.HomePageClient())
         {
             client.RefreshSelectWxHomeConfigsByCityCache();
             client.RefreshSelectWxHomeConfigsCache();
             client.RefreshSelectWxHomeConfigsWithoutVersionCache();
             client.RefreshSelectWxHomeConfigsByCityCache();
             client.RefreshSelectWxWaterfallFlowConfigsCache();
         }
         return(Content("1"));
     }
     catch (Exception e)
     {
         return(Content(e.Message));
     }
 }