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

modify: changed cache_key format data

This commit is contained in:
ddotthomas 2024-01-04 11:05:09 -07:00
parent 86b0d3d6c9
commit dde117e7e6

View File

@ -144,9 +144,9 @@ 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.
cookie_engines.sort();
cache_key = format!("{}{}", cache_key, cookie_engines.join(","));
cache_key = format!("{cache_key}&engines={}", cookie_engines.join(","));
} else {
cache_key = format!("{}{}", cache_key, config_engines.join(","));
cache_key = format!("{cache_key}&engines={}", config_engines.join(","));
}
// fetch the cached results json.