Skip to content

Commit 3769fcb

Browse files
committed
Decreased cache ttl
1 parent 6392549 commit 3769fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ghga_connector/core/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def get_cache_transport(
7171
cache_transport = hishel.AsyncCacheTransport(
7272
transport=wrapped_transport or httpx.AsyncHTTPTransport(),
7373
storage=hishel.AsyncInMemoryStorage(
74-
ttl=300, capacity=512
75-
), # persist for 5 minutes
74+
ttl=60, capacity=512
75+
), # persist for 1 minute
7676
controller=hishel.Controller(
7777
cacheable_methods=["POST", "GET"],
7878
cacheable_status_codes=[200, 201],

0 commit comments

Comments
 (0)