From 0789ace87941697c7a24c00762dc7b79aaa7d274 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Tue, 21 Jul 2015 20:38:23 -0700 Subject: [PATCH] Use IsProduction instead of IsDebug to toggle caching on/off --- src/NzbDrone.Api/Frontend/CacheableSpecification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Api/Frontend/CacheableSpecification.cs b/src/NzbDrone.Api/Frontend/CacheableSpecification.cs index ff606e8a4..b427658e9 100644 --- a/src/NzbDrone.Api/Frontend/CacheableSpecification.cs +++ b/src/NzbDrone.Api/Frontend/CacheableSpecification.cs @@ -14,7 +14,7 @@ namespace NzbDrone.Api.Frontend { public bool IsCacheable(NancyContext context) { - if (BuildInfo.IsDebug) + if (!RuntimeInfoBase.IsProduction) { return false; }