reduce the pip resolution cache duration

This commit is contained in:
Ruben Fiszel
2025-05-22 18:46:58 +02:00
parent 6381cdf7d3
commit 3f825ec77f
4 changed files with 5 additions and 5 deletions

View File

@@ -677,7 +677,7 @@ pub async fn uv_pip_compile(
);
if let Some(db) = conn.as_sql() {
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,
lockfile
).fetch_optional(db).await?;