Cache only used in case of search term

This commit is contained in:
JigSawFr 2015-12-29 11:30:55 +01:00
parent e9ae2d4cd8
commit 29bde68337
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {