mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 02:55:38 +00:00
Page footer is now cached for one hour (there is nothing that would change.)
This commit is contained in:
parent
a48db83be9
commit
0ecc62a6f7
1 changed files with 3 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
||||||
using System;
|
using System.Web.Mvc;
|
||||||
using System.Web.Mvc;
|
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
using NzbDrone.Core.Jobs;
|
|
||||||
using NzbDrone.Core.Providers;
|
|
||||||
using NzbDrone.Web.Models;
|
using NzbDrone.Web.Models;
|
||||||
|
|
||||||
namespace NzbDrone.Web.Controllers
|
namespace NzbDrone.Web.Controllers
|
||||||
|
@ -11,7 +8,7 @@ public class SharedController : Controller
|
||||||
{
|
{
|
||||||
private readonly EnviromentProvider _enviromentProvider;
|
private readonly EnviromentProvider _enviromentProvider;
|
||||||
|
|
||||||
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
|
public SharedController(EnviromentProvider enviromentProvider)
|
||||||
{
|
{
|
||||||
_enviromentProvider = enviromentProvider;
|
_enviromentProvider = enviromentProvider;
|
||||||
}
|
}
|
||||||
|
@ -22,9 +19,9 @@ public ActionResult Index()
|
||||||
}
|
}
|
||||||
|
|
||||||
[ChildActionOnly]
|
[ChildActionOnly]
|
||||||
|
[OutputCache(Duration = 3600)]
|
||||||
public ActionResult Footer()
|
public ActionResult Footer()
|
||||||
{
|
{
|
||||||
|
|
||||||
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
|
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue