mirror of
https://github.com/Readarr/Readarr.git
synced 2026-01-27 23:38:12 -05:00
disable cache while debugging.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user