core: Add torznab cache option for individual indexers (#12235)

This commit is contained in:
mikeoscar2006
2021-08-30 08:39:48 +05:30
committed by GitHub
parent 0b4195f3cb
commit 88959ac824
5 changed files with 22 additions and 4 deletions

View File

@@ -252,6 +252,9 @@ namespace Jackett.Common.Services
// Both request must return the same results, if not we are breaking Jackett search
json = json.Replace("\"SearchTerm\":null", "\"SearchTerm\":\"\"");
// The Cache parameter's value should not affect caching itself
json = json.Replace("\"Cache\":false", "\"Cache\":true");
return json;
}