added caching to forums results
Some checks failed
Run Integration Tests / test (push) Failing after 22s

This commit is contained in:
partisan 2024-12-05 19:39:45 +01:00
parent 6c351c5f2b
commit f2d9a37e87
5 changed files with 72 additions and 22 deletions

View file

@ -96,7 +96,7 @@ func getImageResultsFromCacheOrFetch(cacheKey CacheKey, query, safe, lang string
printDebug("Crawler disabled; skipping fetching from image search engines.")
}
} else {
_, _, imageResults := convertToSpecificResults(results)
_, _, imageResults, _ := convertToSpecificResults(results)
combinedResults = filterValidImages(imageResults)
}
case <-time.After(2 * time.Second):