mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
disable cache while debugging.
This commit is contained in:
parent
576ea8560b
commit
040bfb08ce
@ -13,6 +13,11 @@ public class CacheableSpecification : ICacheableSpecification
|
|||||||
{
|
{
|
||||||
public bool IsCacheable(NancyContext context)
|
public bool IsCacheable(NancyContext context)
|
||||||
{
|
{
|
||||||
|
if (BuildInfo.IsDebug)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (context.Request.Query.v == BuildInfo.Version) return true;
|
if (context.Request.Query.v == BuildInfo.Version) return true;
|
||||||
|
|
||||||
if (context.Request.Path.StartsWith("/api", StringComparison.CurrentCultureIgnoreCase)) return false;
|
if (context.Request.Path.StartsWith("/api", StringComparison.CurrentCultureIgnoreCase)) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user