fix: make search revalidate & change cache to be 10 minutes (#6682)

* fix: make search revalidate & change cache to be 10 minutes

* prepr
This commit is contained in:
Prospector
2026-07-10 16:58:45 +00:00
committed by GitHub
parent 2434f0c45b
commit af8daca059
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -101,6 +101,9 @@ impl CacheValueType {
// ModpackFiles never expire - version_id is immutable so hashes never change
// TODO: There has to be a way to exclude this from the "Purge cache" stuff?
CacheValueType::ModpackFiles => 100 * 365 * 24 * 60 * 60, // 100 years (effectively never)
CacheValueType::SearchResults | CacheValueType::SearchResultsV3 => {
10 * 60 // 10 minutes
}
_ => 30 * 60, // 30 minutes
}
}