1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

disable cache while debugging.

This commit is contained in:
kay.one 2013-08-20 23:28:41 -07:00
parent 576ea8560b
commit 040bfb08ce

View File

@ -13,6 +13,11 @@ public class CacheableSpecification : ICacheableSpecification
{
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;