修改问题

This commit is contained in:
zpc 2024-08-05 15:34:50 +08:00
parent 1911844256
commit 7b82ac364d

View File

@ -20,11 +20,24 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers
/// <returns></returns> /// <returns></returns>
[HttpGet("cache/clear")] [HttpGet("cache/clear")]
[AllowAnonymous] [AllowAnonymous]
public async Task Clear() public async Task ClearCache()
{ {
OtherBLL otherBLL = new OtherBLL(ServiceProvider); OtherBLL otherBLL = new OtherBLL(ServiceProvider);
await otherBLL.CleraCache(); await otherBLL.CleraCache();
} }
/// <summary>
/// 清除缓存
/// </summary>
/// <returns></returns>
[HttpGet("cache/reload")]
[AllowAnonymous]
public async Task ReloadCache()
{
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
await otherBLL.ReloadCache();
}
} }
} }