Skip to content

Commit bb2ecbd

Browse files
committed
cache jhu data (locally) for 30 minutes
1 parent b429328 commit bb2ecbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/services/location/jhu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def get(self, loc_id): # pylint: disable=arguments-differ
4646
)
4747

4848

49-
@cached(cache=TTLCache(maxsize=1024, ttl=3600))
49+
@cached(cache=TTLCache(maxsize=1024, ttl=1800))
5050
async def get_category(category):
5151
"""
5252
Retrieves the data for the provided category. The data is cached for 1 hour.
@@ -129,7 +129,7 @@ async def get_category(category):
129129
return results
130130

131131

132-
@cached(cache=TTLCache(maxsize=1024, ttl=3600))
132+
@cached(cache=TTLCache(maxsize=1024, ttl=1800))
133133
async def get_locations():
134134
"""
135135
Retrieves the locations from the categories. The locations are cached for 1 hour.

0 commit comments

Comments
 (0)