mirror of
https://github.com/Radarr/Radarr
synced 2025-03-04 02:38:18 +00:00
disable cache while debugging.
This commit is contained in:
parent
576ea8560b
commit
040bfb08ce
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue