pvanand commited on
Commit
16ef4d2
·
verified ·
1 Parent(s): d1d878f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -226,8 +226,8 @@ def fetch_news(query, num_results=20):
226
  else:
227
  return []
228
 
229
- @cache(expire=3600)
230
- async def cached_fetch_news(query: str):
231
  return fetch_news(query)
232
 
233
 
 
226
  else:
227
  return []
228
 
229
+ @lru_cache(maxsize=100)
230
+ def cached_fetch_news(query: str):
231
  return fetch_news(query)
232
 
233