fix: Increase cache TTL

This commit is contained in:
2022-02-27 15:55:53 +03:00
parent b631b10ca6
commit 36f6932bb7
+1 -1
View File
@@ -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()