reduce the pip resolution cache duration

This commit is contained in:
Ruben Fiszel
2025-05-22 18:47:02 +02:00
parent 6381cdf7d3
commit 3f825ec77f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ pub async fn resolve<'a>(
if let Connection::Sql(db) = conn {
sqlx::query!(
"INSERT INTO pip_resolution_cache (hash, lockfile, expiration) VALUES ($1, $2, now() + ('3 days')::interval) ON CONFLICT (hash) DO UPDATE SET lockfile = $2",
"INSERT INTO pip_resolution_cache (hash, lockfile, expiration) VALUES ($1, $2, now() + ('5 mins')::interval) ON CONFLICT (hash) DO UPDATE SET lockfile = $2",
req_hash,
lock.clone(),
)