mirror of https://github.com/Jackett/Jackett
Cache only used in case of search term
This commit is contained in:
parent
e9ae2d4cd8
commit
29bde68337
|
@ -175,8 +175,8 @@ namespace Jackett.Indexers
|
||||||
var searchTerm = query.GetQueryString();
|
var searchTerm = query.GetQueryString();
|
||||||
var searchUrl = SearchUrl;
|
var searchUrl = SearchUrl;
|
||||||
|
|
||||||
// Check cache first so we don't query the server
|
// Check cache first so we don't query the server (if search term used or not in dev mode)
|
||||||
if(!DevMode)
|
if(!DevMode && !string.IsNullOrEmpty(searchTerm))
|
||||||
{
|
{
|
||||||
lock (cache)
|
lock (cache)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue