From 040bfb08ce84233c67e45a989fbc2889a8378ff4 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 20 Aug 2013 23:28:41 -0700 Subject: [PATCH] disable cache while debugging. --- NzbDrone.Api/Frontend/IsCacheableSpecification.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NzbDrone.Api/Frontend/IsCacheableSpecification.cs b/NzbDrone.Api/Frontend/IsCacheableSpecification.cs index f8d8b20b7..a86768495 100644 --- a/NzbDrone.Api/Frontend/IsCacheableSpecification.cs +++ b/NzbDrone.Api/Frontend/IsCacheableSpecification.cs @@ -13,6 +13,11 @@ namespace NzbDrone.Api.Frontend { public bool IsCacheable(NancyContext context) { + if (BuildInfo.IsDebug) + { + return false; + } + if (context.Request.Query.v == BuildInfo.Version) return true; if (context.Request.Path.StartsWith("/api", StringComparison.CurrentCultureIgnoreCase)) return false;