From 0ecc62a6f78da4fc7583c88b0e47e93e1cb1fa9f Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 14 Jan 2012 22:50:37 -0800 Subject: [PATCH] Page footer is now cached for one hour (there is nothing that would change.) --- NzbDrone.Web/Controllers/SharedController.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/NzbDrone.Web/Controllers/SharedController.cs b/NzbDrone.Web/Controllers/SharedController.cs index 3b0c339f4..3408efc2c 100644 --- a/NzbDrone.Web/Controllers/SharedController.cs +++ b/NzbDrone.Web/Controllers/SharedController.cs @@ -1,8 +1,5 @@ -using System; -using System.Web.Mvc; +using System.Web.Mvc; using NzbDrone.Common; -using NzbDrone.Core.Jobs; -using NzbDrone.Core.Providers; using NzbDrone.Web.Models; namespace NzbDrone.Web.Controllers @@ -11,7 +8,7 @@ namespace NzbDrone.Web.Controllers { private readonly EnviromentProvider _enviromentProvider; - public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider) + public SharedController(EnviromentProvider enviromentProvider) { _enviromentProvider = enviromentProvider; } @@ -22,9 +19,9 @@ namespace NzbDrone.Web.Controllers } [ChildActionOnly] + [OutputCache(Duration = 3600)] public ActionResult Footer() { - return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version }); } }