From e720f838199f1d8930e88f4813c710b867b5e06f Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Mon, 3 Aug 2015 01:56:13 -0400 Subject: [PATCH] add pub profile --- lmltfy/Controllers/HomeController.cs | 3 ++- lmltfy/lmltfy.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lmltfy/Controllers/HomeController.cs b/lmltfy/Controllers/HomeController.cs index dcda353..7a6e944 100644 --- a/lmltfy/Controllers/HomeController.cs +++ b/lmltfy/Controllers/HomeController.cs @@ -13,6 +13,7 @@ namespace lmltfy.Controllers [Route("")] [Route("h/{application}")] + [OutputCache(Duration = int.MaxValue, Location = System.Web.UI.OutputCacheLocation.ServerAndClient, VaryByParam = "application")] public ActionResult Index(string application = AppNames.Lycos) { var app = application.ToAppEnum(); @@ -42,7 +43,7 @@ namespace lmltfy.Controllers [HttpGet] [Route("{url}")] - // [OutputCache(Duration = 86400, Location = System.Web.UI.OutputCacheLocation.ServerAndClient, VaryByParam = "url")] + [OutputCache(Duration = 86400, Location = System.Web.UI.OutputCacheLocation.ServerAndClient, VaryByParam = "url")] public ActionResult Search(string url) { var model = db.SearchModels.FirstOrDefault(a => a.Url == url); diff --git a/lmltfy/lmltfy.csproj b/lmltfy/lmltfy.csproj index 05baaf9..747946a 100644 --- a/lmltfy/lmltfy.csproj +++ b/lmltfy/lmltfy.csproj @@ -199,6 +199,7 @@ + @@ -235,7 +236,6 @@ -