Commit b59ecbff authored by Clint Mourlevat's avatar Clint Mourlevat

Removing cache

parent a795da63
...@@ -25,7 +25,6 @@ namespace Stratis.Guru.Controllers ...@@ -25,7 +25,6 @@ namespace Stratis.Guru.Controllers
_stats = JsonConvert.DeserializeObject(_memoryCache.Get("BlockchainStats").ToString()); _stats = JsonConvert.DeserializeObject(_memoryCache.Get("BlockchainStats").ToString());
} }
//[ResponseCache(Duration = 60, NoStore = true)]
public IActionResult Index() public IActionResult Index()
{ {
var latestBlockClient = new RestClient($"{_nakoApiSettings.Endpoint}query/block/Latest/transactions"); var latestBlockClient = new RestClient($"{_nakoApiSettings.Endpoint}query/block/Latest/transactions");
......
...@@ -50,11 +50,11 @@ namespace Stratis.Guru ...@@ -50,11 +50,11 @@ namespace Stratis.Guru
services.AddTransient<UpdateHub>(); services.AddTransient<UpdateHub>();
services.AddSingleton<IAsk, Ask>(); services.AddSingleton<IAsk, Ask>();
services.AddResponseCaching(options => /*services.AddResponseCaching(options =>
{ {
options.UseCaseSensitivePaths = true; options.UseCaseSensitivePaths = true;
options.MaximumBodySize = 1024; options.MaximumBodySize = 1024;
}); });*/
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment