Fixed cache pages when results = 0
This commit is contained in:
parent
4fb9103f27
commit
efb9f737fa
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ int check_cache_for_job(ScrapeJob *job) {
|
||||||
}
|
}
|
||||||
free(cached_data);
|
free(cached_data);
|
||||||
free(key);
|
free(key);
|
||||||
|
|
||||||
|
if (job->results_count == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue