From 36f6932bb79ad5c241e9a697a1d73ed42d633ed1 Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Sun, 27 Feb 2022 15:55:53 +0300 Subject: [PATCH] fix: Increase cache TTL --- core/diyanet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/diyanet.py b/core/diyanet.py index 01803f4..b3eae48 100644 --- a/core/diyanet.py +++ b/core/diyanet.py @@ -21,7 +21,7 @@ class PrayerTimes(BaseModel): isha: str -@cached(ttl=60*60, cache=Cache.MEMORY) +@cached(ttl=3*60*60, cache=Cache.MEMORY) async def parse_prayer_times(url: str) -> List[PrayerTimes]: res = await _http.get(url) res.raise_for_status()