From af1f13e57f2449ccb0dea0961a00f93c0a93e63d Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 25 Oct 2024 20:43:25 +0200 Subject: [PATCH] bugfixing cache time --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index c80b34a..dc42824 100755 --- a/app/main.py +++ b/app/main.py @@ -4104,7 +4104,7 @@ async def get_insider_tracker(api_key: str = Security(get_api_key)): compressed_data = gzip.compress(data) redis_client.set(cache_key, compressed_data) - redis_client.expire(cache_key,3600*3600) + redis_client.expire(cache_key,5*60) return StreamingResponse( io.BytesIO(compressed_data),