1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

New: All setting values are cached for better responsiveness.

This commit is contained in:
kay.one
2012-02-11 16:01:52 -08:00
parent 2051c9d911
commit 6df184b7cb
6 changed files with 101 additions and 24 deletions
+10 -10
View File
@@ -48,13 +48,13 @@ namespace NzbDrone.Web.Controllers
var jobs = _jobProvider.All().Select(j => new JobModel
{
Id = j.Id,
Enable = j.Enable,
TypeName = j.TypeName,
Name = j.Name,
Interval = j.Interval,
LastExecution = j.LastExecution.ToString(),
Success = j.Success
Id = j.Id,
Enable = j.Enable,
TypeName = j.TypeName,
Name = j.Name,
Interval = j.Interval,
LastExecution = j.LastExecution.ToString(),
Success = j.Success
}).OrderBy(j => j.Interval);
var serializedJobs = new JavaScriptSerializer().Serialize(jobs);
@@ -84,9 +84,9 @@ namespace NzbDrone.Web.Controllers
return Json(new
{
iTotalRecords = config.Count,
iTotalDisplayRecords = config.Count,
aaData = config
iTotalRecords = config.Count(),
iTotalDisplayRecords = config.Count(),
aaData = config
}, JsonRequestBehavior.AllowGet);
}