Merge pull request #2416 from sbwalker/dev
optimize assembly list retrieval
This commit is contained in:
commit
7dd210976d
|
@ -19,8 +19,6 @@ using System.Net.Http.Headers;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using static System.Net.WebRequestMethods;
|
||||
|
||||
namespace Oqtane.Controllers
|
||||
{
|
||||
|
@ -105,7 +103,10 @@ namespace Oqtane.Controllers
|
|||
[HttpGet("list")]
|
||||
public List<string> List()
|
||||
{
|
||||
return GetAssemblyList();
|
||||
return _cache.GetOrCreate("assemblieslist", entry =>
|
||||
{
|
||||
return GetAssemblyList();
|
||||
});
|
||||
}
|
||||
|
||||
// GET api/<controller>/load?list=x,y
|
||||
|
|
|
@ -12,7 +12,6 @@ using Oqtane.Shared;
|
|||
using System.Linq;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System;
|
||||
|
||||
namespace Oqtane.Controllers
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user