0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 12:28:21 -05:00

fix: added a config parse backup

This commit is contained in:
ddotthomas 2023-12-30 22:12:43 -07:00
parent bfeb81270c
commit 286bcf1bd3

View File

@ -139,6 +139,16 @@ async fn results(
// We sort the list of engine so the cache keys will match between users. The cookie's list of engines is unordered.
engines.sort();
cache_key = cache_key + &(engines.join(""));
} else {
let mut engines: Vec<String> = config
.upstream_search_engines
.iter()
.filter(|map| *map.1)
.map(|map| String::from(&(*map.0)))
.collect();
engines.sort();
cache_key = cache_key + &(engines.join(""));
}
// fetch the cached results json.